mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 05:25:08 +00:00
chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768)
This commit is contained in:
@@ -347,7 +347,7 @@ public:
|
||||
me->CallForHelp(500.0f);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*pKiller*/) override
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
RespawnDragons(true);
|
||||
_JustDied();
|
||||
|
||||
@@ -494,7 +494,7 @@ public:
|
||||
if (me->IsDamageEnoughForLootingAndReward())
|
||||
halion->LowerPlayerDamageReq(halion->GetMaxHealth());
|
||||
|
||||
if (halion->IsAlive())
|
||||
if (killer && halion->IsAlive())
|
||||
Unit::Kill(killer, halion);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user