From df6a39cebce01f0358b1880dcf42d2dfe4657b20 Mon Sep 17 00:00:00 2001 From: Rat Date: Tue, 11 May 2010 21:48:03 +0200 Subject: [PATCH] give xp only in BattleGrounds and not in arenas --HG-- branch : trunk --- src/game/BattleGround.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 522acf003ef..56ed82a2533 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1809,7 +1809,6 @@ void BattleGround::HandleKillPlayer(Player *player, Player *killer) // add +1 deaths UpdatePlayerScore(player, SCORE_DEATHS, 1); - RewardXPAtKill(killer, player); // add +1 kills to group and +1 killing_blows to killer if (killer) { @@ -1829,8 +1828,12 @@ void BattleGround::HandleKillPlayer(Player *player, Player *killer) } // to be able to remove insignia -- ONLY IN BattleGrounds + // give xp only in BattleGrounds if (!isArena()) + { player->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE); + RewardXPAtKill(killer, player); + } } // return the player's team based on battlegroundplayer info