refactor(Core): DespawnOrUnsummon (#23141)

This commit is contained in:
天鹭 2025-10-13 14:36:23 +08:00 committed by GitHub
parent 8e2e30328f
commit 53238a68d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
148 changed files with 363 additions and 366 deletions

View file

@ -3706,7 +3706,7 @@ class spell_gen_despawn_self : public SpellScript
void HandleDummy(SpellEffIndex effIndex)
{
if (GetSpellInfo()->Effects[effIndex].Effect == SPELL_EFFECT_DUMMY || GetSpellInfo()->Effects[effIndex].Effect == SPELL_EFFECT_SCRIPT_EFFECT)
GetCaster()->ToCreature()->DespawnOrUnsummon(1);
GetCaster()->ToCreature()->DespawnOrUnsummon(1ms);
}
void Register() override