aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-01 18:44:27 -0600
committermegamage <none@none>2008-12-01 18:44:27 -0600
commitab179d76fea73d8a2457bbafe376d1df0e68f34e (patch)
tree9be426f7aa3ceb8d82aae6121375fbfd260e9b0c
parent5af8cf6f3d99f9e82361b269f69da886e68c7246 (diff)
*Fix a bug that player stuck with 1 hp when killed with IncreaseMaxHealth aura.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index a9f975b1254..d6a2c64013a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -765,8 +765,9 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
// FORM_SPIRITOFREDEMPTION and related auras
pVictim->CastSpell(pVictim,27827,true,NULL,spiritOfRedemtionTalentReady);
}
- //else
- // pVictim->SetHealth(0);
+ else //without this when removing IncreaseMaxHealth aura player may stuck with 1 hp
+ //do not why since in IncreaseMaxHealth currenthealth is checked
+ pVictim->SetHealth(0);
// remember victim PvP death for corpse type and corpse reclaim delay
// at original death (not at SpiritOfRedemtionTalent timeout)