aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-01 11:18:51 -0700
committermaximius <none@none>2009-09-01 11:18:51 -0700
commit3db602b2d19846cd27638ea33c142701b78c5ca4 (patch)
tree3ecda4cf10b5c32a2db9d0ceebfa0f0c2bdde38e
parent9710187b1a93e68e74c48f189700fc21710be3fe (diff)
*Add some more debug info, don't kick GMs :)
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 37362dab4b1..b35f5966608 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -1117,9 +1117,9 @@ void Player::Update( uint32 p_time )
if(GetHealth() && (isDead() || HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST)))
{
- sLog.outError("Player %s(GUID: %u) was dead and had health > 0. This _might_ be an exploit attempt. They have been kicked.", GetName(), GetGUIDLow());
+ sLog.outError("Player %s(GUID: %u) was dead(isDead() = %u, PLAYER_FLAGS_GHOST = %u) and had health > 0. This _might_ be an exploit attempt. They have been kicked.", GetName(), GetGUIDLow(), uint8(isDead()), uint8(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST)));
SetHealth(0);
- GetSession()->KickPlayer();
+ if(!isGameMaster() && GetSession()->GetSecurity() < SEC_GAMEMASTER) GetSession()->KickPlayer();
return;
}