mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Battleground: move check from f454b6722c to correct location.
This commit is contained in:
@@ -1773,15 +1773,15 @@ void Battleground::HandleKillPlayer(Player* victim, Player* killer)
|
||||
{
|
||||
// Keep in mind that for arena this will have to be changed a bit
|
||||
|
||||
// Don't reward credit for killing ourselves, like fall damage of hellfire (warlock)
|
||||
if (victim && killer && killer == victim)
|
||||
return;
|
||||
|
||||
// Add +1 deaths
|
||||
UpdatePlayerScore(victim, SCORE_DEATHS, 1);
|
||||
// Add +1 kills to group and +1 killing_blows to killer
|
||||
if (killer)
|
||||
{
|
||||
// Don't reward credit for killing ourselves, like fall damage of hellfire (warlock)
|
||||
if (killer == victim)
|
||||
return;
|
||||
|
||||
UpdatePlayerScore(killer, SCORE_HONORABLE_KILLS, 1);
|
||||
UpdatePlayerScore(killer, SCORE_KILLING_BLOWS, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user