Core/Unit: Add Unit::KillSelf() overload
Add Unit::KillSelf() function as overload of Unit::Kill(this) . Use KillSelf() whenever the killer and the victim are the same to clearly state the Unit is going to kill itself.
This commit is contained in:
1 parent
ee12982008
commit
3267c90102
30 files changed
+55
-54
No files matched your search
@@ -2509,7 +2509,7 @@ class spell_item_chicken_cover : public SpellScriptLoader
|
||||
if (!target->HasAura(SPELL_CHICKEN_NET) && (caster->GetQuestStatus(QUEST_CHICKEN_PARTY) == QUEST_STATUS_INCOMPLETE || caster->GetQuestStatus(QUEST_FLOWN_THE_COOP) == QUEST_STATUS_INCOMPLETE))
|
||||
{
|
||||
caster->CastSpell(caster, SPELL_CAPTURE_CHICKEN_ESCAPE, true);
|
||||
target->Kill(target);
|
||||
target->KillSelf();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user