[7460] Fixed possible cheating in rated arena by ressurection after relog. Author: Triply

Fix: Do not allow to remove insignia from players in arena!
    Fixed ending arena match when last player of team logs out.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-15 17:16:11 -06:00
parent 681d1d171e
commit 1a8528b3db
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -4137,7 +4137,7 @@ void Player::CreateCorpse()
flags |= CORPSE_FLAG_HIDE_HELM;
if(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK))
flags |= CORPSE_FLAG_HIDE_CLOAK;
if(InBattleGround())
if(InBattleGround() && !InArena())
flags |= CORPSE_FLAG_LOOTABLE; // to be able to remove insignia
corpse->SetUInt32Value( CORPSE_FIELD_FLAGS, flags );