aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkandera <kanderacutie@hotmail.com>2012-03-28 19:21:40 -0300
committerkandera <kanderacutie@hotmail.com>2012-03-28 19:21:40 -0300
commitd94608777c9af4cc826978931138f5b5b87de349 (patch)
tree15a94f9e450570577fff2990cef703ec25f05508 /src
parenta14aa3758593c903d024199f70df4d7a4cd72c0f (diff)
Core/Scripts: Fix invincibility hp level for smart scripts.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index 4cf438da5a4..c2c864802df 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -639,7 +639,7 @@ void SmartAI::DamageTaken(Unit* doneBy, uint32& damage)
{
GetScript()->ProcessEventsFor(SMART_EVENT_DAMAGED, doneBy, damage);
if ((me->GetHealth() - damage) <= mInvinceabilityHpLevel)
- damage -= mInvinceabilityHpLevel;
+ damage = me->GetHealth() - mInvinceabilityHpLevel;
}
void SmartAI::HealReceived(Unit* doneBy, uint32& addhealth)