aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-01 21:10:43 -0700
committermaximius <none@none>2009-09-01 21:10:43 -0700
commit1e06f0ee1ebebfc82af66584a760dd8e0fe85195 (patch)
tree7a507cc50d46220565d7c8c4275d5d83349ba448 /src
parentc926cb242ce5589d5551a8aea62966ba4ba0598e (diff)
*GetHealth() was not returning desired value, so this code block is worthless.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 1b425890273..fa7c3d271e8 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -1115,14 +1115,6 @@ void Player::Update( uint32 p_time )
if(!IsInWorld())
return;
- if(GetHealth() && getDeathState() != JUST_ALIVED && (!isAlive() || HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST)))
- {
- sLog.outError("Player %s(GUID: %u) was dead(getDeathState() = %u, PLAYER_FLAGS_GHOST = %u) and had health = %u. This _might_ be an exploit attempt, if you think this information is useful, please report it.", GetName(), GetGUIDLow(), uint8(getDeathState()), uint8(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST)), GetHealth());
- //SetHealth(0); <- Don't use unless you're damn sure they're exploiting..
- //if(!isGameMaster() && GetSession()->GetSecurity() < SEC_GAMEMASTER) GetSession()->KickPlayer();
- //return;
- }
-
// undelivered mail
if(m_nextMailDelivereTime && m_nextMailDelivereTime <= time(NULL))
{