diff options
author | Rat <none@none> | 2010-05-11 21:48:03 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-05-11 21:48:03 +0200 |
commit | df6a39cebce01f0358b1880dcf42d2dfe4657b20 (patch) | |
tree | 7616a63178629f696583891b4ac6fcc0e802858a | |
parent | eae6f5c09410cd61ef51999343a77b67c71a85d0 (diff) |
give xp only in BattleGrounds and not in arenas
--HG--
branch : trunk
-rw-r--r-- | src/game/BattleGround.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 |