1
This commit is contained in:
parent
bef1496890
commit
eba8bd4305
@ -549,6 +549,17 @@ void Skill::ProcCMXD()
|
||||
|
||||
std::shared_ptr<Explosion> e = EntityFactory::Instance()->MakeExplosion();
|
||||
e->SetThrough(true);
|
||||
e->SetCustomCheckCb
|
||||
(
|
||||
[sender, skill_meta] (const std::vector<std::any>& params) mutable
|
||||
{
|
||||
bool* is_hit = std::any_cast<bool*>(params.at(0));
|
||||
Entity* e = std::any_cast<Entity*>(params.at(1));
|
||||
if (sender.Get() && e->IsCreature(sender.Get()->room)) {
|
||||
Creature* c = (Creature*)e;
|
||||
}
|
||||
}
|
||||
);
|
||||
e->SetHitCb
|
||||
(
|
||||
[sender, skill_meta] (const std::vector<std::any>& params) mutable
|
||||
|
Loading…
x
Reference in New Issue
Block a user