feat(Core/Unit): Add KillSelf overload (#14785)

Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
Skjalf
2023-01-28 17:57:23 -03:00
committed by GitHub
parent 6ae8ffa8e6
commit b4e3f1310b
28 changed files with 31 additions and 30 deletions

View File

@@ -128,7 +128,7 @@ public:
if (pInstance->GetData(DATA_INSTANCE_PROGRESS) < INSTANCE_PROGRESS_ARGENT_CHALLENGE_DIED)
return;
Unit::Kill(me, me); // for bk scene, die after knockback
me->KillSelf(); // for bk scene, die after knockback
}
void UpdateAI(uint32 /*diff*/) override { }