Core/Spells: Fix bug with incoming damage reduction by some talent auras when it shouldn't happen

This commit is contained in:
tobmaps committed 2011-06-30 03:12:35 +07:00
1 parent 7762ddce57
commit 6f0af070c0
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ public:
void Absorb(AuraEffect * /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
// reduces all damage taken while stun or fear
if (GetTarget()->GetUInt32Value(UNIT_FIELD_FLAGS) & (UNIT_FLAG_STUNNED | UNIT_FLAG_FLEEING))
if (GetTarget()->GetUInt32Value(UNIT_FIELD_FLAGS) & (UNIT_FLAG_FLEEING) || (GetTarget()->GetUInt32Value(UNIT_FIELD_FLAGS) & (UNIT_FLAG_STUNNED) && GetTarget()->HasAuraWithMechanic(1<<MECHANIC_STUN)))
absorbAmount = CalculatePctN(dmgInfo.GetDamage(), absorbPct);
}