From 52e3010b4906751375b726180f83f36f660490ad Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 1 Dec 2008 10:37:51 -0600 Subject: [PATCH] *Fix a bug that rogue dodges self's spells and retains combo points. --HG-- branch : trunk --- src/game/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0052efe95c..37c393fd39 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) {