Core/Battleground: move check from f454b6722c to correct location.

This commit is contained in:
Kandera
2012-07-02 11:42:11 -04:00
parent 5edeb06f66
commit a73ad7170e
@@ -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 // 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 // Add +1 deaths
UpdatePlayerScore(victim, SCORE_DEATHS, 1); UpdatePlayerScore(victim, SCORE_DEATHS, 1);
// Add +1 kills to group and +1 killing_blows to killer // Add +1 kills to group and +1 killing_blows to killer
if (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_HONORABLE_KILLS, 1);
UpdatePlayerScore(killer, SCORE_KILLING_BLOWS, 1); UpdatePlayerScore(killer, SCORE_KILLING_BLOWS, 1);