aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-01-20 01:16:51 -0300
committerShauren <shauren.trinity@gmail.com>2019-07-21 21:06:54 +0200
commit17703e89245a6754625df5ef1922dffe44223f07 (patch)
tree10e442bc6c9fe1532fbba41d19ba1a82c7b18a86
parenta09f572d24a0bd92f85f35bb8955aab89ee69068 (diff)
Core/Spell: remove duplicated SPELL_AURA_MOD_DEBUFF_RESISTANCE handling.
Each spell had two rolls in which it could be resisted, effectively adding to the resist chance. Closes #7406 (cherrypicked from 23f76b563f3002e1557eb5dd75e0d26bd22357ab)
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 75f443223a8..e046dc17402 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -2499,7 +2499,7 @@ SpellMissInfo Unit::MagicSpellHitResult(Unit* victim, SpellInfo const* spellInfo
// Increase hit chance from attacker SPELL_AURA_MOD_SPELL_HIT_CHANCE and attacker ratings
HitChance += int32(m_modSpellHitChance * 100.0f);
- RoundToInterval(HitChance, 100, 10000);
+ RoundToInterval(HitChance, 0, 10000);
int32 tmp = 10000 - HitChance;