Scripts: Replaced calls to ForcedDespawn with DespawnOrUnsummon (calls appropriate AI hooks in case of temporary summons) and made ForcedDespawn private
This commit is contained in:
1 parent
396b1ded1a
commit
1851a2e9e3
18 files changed
+32
-31
No files matched your search
@@ -837,7 +837,7 @@ class spell_q12659_ahunaes_knife : public SpellScriptLoader
|
||||
Player* caster = GetCaster()->ToPlayer();
|
||||
if (Creature* target = GetHitCreature())
|
||||
{
|
||||
target->ForcedDespawn();
|
||||
target->DespawnOrUnsummon();
|
||||
caster->KilledMonsterCredit(NPC_SCALPS_KC_BUNNY, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user