chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768)

This commit is contained in:
Kitzunu
2021-12-31 16:00:40 +01:00
committed by GitHub
parent 0556f0b3d5
commit 69683a3472
22 changed files with 34 additions and 31 deletions

View File

@@ -347,7 +347,7 @@ public:
me->CallForHelp(500.0f);
}
void JustDied(Unit* /*pKiller*/) override
void JustDied(Unit* /*killer*/) override
{
RespawnDragons(true);
_JustDied();

View File

@@ -494,7 +494,7 @@ public:
if (me->IsDamageEnoughForLootingAndReward())
halion->LowerPlayerDamageReq(halion->GetMaxHealth());
if (halion->IsAlive())
if (killer && halion->IsAlive())
Unit::Kill(killer, halion);
}