Death Bug
Mangos Rev: 8763+, and with newest problem too
Custom Patches: NO
autor:insider42
Problem:
If you try to cast a spell whem you are reciving the last hit, you got a bug "undead", you got all dead flags but you corspe don't become a ghost.
´´Killing, killing, killing, hitting keys like fool, you're about to die but you stay around 1-200health, stats are the same but no regen, you can cast spells but you don´'t take any damage, you cannot move and you cant release spirit
fix:
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index d8773cd..33a4341 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -1271,6 +1271,11 @@ void Player::Update( uint32 p_time )
RegenerateAll();
}
+ if (!isAlive() && !HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))
+ {
+ SetHealth(0);
+ }
+
if (m_deathState == JUST_DIED)
{
KillPlayer();