This commit is contained in:
aozhiwei 2022-10-18 13:32:50 +08:00
parent bef1496890
commit eba8bd4305

View File

@ -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