aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorclick <none@none>2010-05-25 10:36:33 +0200
committerclick <none@none>2010-05-25 10:36:33 +0200
commitb4e19528ef69269b837fbf787b2f1f7f9904d504 (patch)
treee0abe3584fd0f320a929f8932387c38b83c39049 /src/game/Unit.cpp
parent8f908f9df70c63da2bec7acdfe3f3f1e8eb9d527 (diff)
Make spellsteal respect dispel-resistances - patch by dr.tenma (thank you!)
This changes the way SPELL_AURA_MOD_DISPEL_RESIST works and fixes mages root diminishing returns Closes issue #1045. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 13538a74541..0b3b075b2b6 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -2823,9 +2823,6 @@ SpellMissInfo Unit::MagicSpellHitResult(Unit *pVictim, SpellEntry const *spell)
// Reduce spell hit chance for Area of effect spells from victim SPELL_AURA_MOD_AOE_AVOIDANCE aura
if (IsAreaOfEffectSpell(spell))
modHitChance-=pVictim->GetTotalAuraModifier(SPELL_AURA_MOD_AOE_AVOIDANCE);
- // Reduce spell hit chance for dispel mechanic spells from victim SPELL_AURA_MOD_DISPEL_RESIST
- if (IsDispelSpell(spell))
- modHitChance-=pVictim->GetTotalAuraModifier(SPELL_AURA_MOD_DISPEL_RESIST);
int32 HitChance = modHitChance * 100;
// Increase hit chance from attacker SPELL_AURA_MOD_SPELL_HIT_CHANCE and attacker ratings