diff options
author | megamage <none@none> | 2008-12-01 10:37:51 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-01 10:37:51 -0600 |
commit | 52e3010b4906751375b726180f83f36f660490ad (patch) | |
tree | 6e88f8106cca8dfdc696afd53be9b098e0aac82d | |
parent | 77228c0abbfa0d799be28a35805b46de2e4f92ab (diff) |
*Fix a bug that rogue dodges self's spells and retains combo points.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0052efe95ce..37c393fd393 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3402,6 +3402,9 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool if (pVictim->IsImmunedToDamage(GetSpellSchoolMask(spell),true)) return SPELL_MISS_IMMUNE; + if(this == pVictim) + return SPELL_MISS_NONE; + // Try victim reflect spell if (CanReflect) { |