Core/Unit: Restore function of HandleKillPlayer
Port From (https://github.com/TrinityCore/TrinityCore/commit/78012dadf2bb04398cbe3630d07762bffff82c8b)
This commit is contained in:
@@ -1009,7 +1009,10 @@ namespace Game.Entities
|
||||
{
|
||||
Player playerVictim = victim.ToPlayer();
|
||||
if (playerVictim != null)
|
||||
bg.HandleKillPlayer(playerVictim, player);
|
||||
{
|
||||
if (player != null)
|
||||
bg.HandleKillPlayer(playerVictim, player);
|
||||
}
|
||||
else
|
||||
bg.HandleKillUnit(victim.ToCreature(), player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user