diff options
author | QAston <none@none> | 2009-03-09 19:33:33 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-09 19:33:33 +0100 |
commit | 19717bbaa61ca43ee4ea081d95ca61b620f428d8 (patch) | |
tree | d82f4b3314ac1b741c4e93bf24df2aa60691a644 /src | |
parent | ae0e1e250af5c26c497307ac03c6c9fa872210ce (diff) |
*Fix Reflective Shield proc. Original patch by Lightguard.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bdad465c38f..affe75d41d0 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2018,7 +2018,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe } // Reflective Shield - if (spellProto->SpellFamilyFlags.IsEqual(0x1)) + if (spellProto->SpellFamilyFlags.IsEqual(0x1, 0, 0x400)) { if (pVictim == this) break; @@ -4893,7 +4893,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu // Tricky thing here, we find current aura from spell by caster and change its modifier value int32 spelldmg = CalculateSpellDamage(procSpell, 0, procSpell->EffectBasePoints[0],pVictim); Aura * Aur = NULL; - spellEffectPair spair = spellEffectPair(procSpell->Id, effIndex); + spellEffectPair spair = spellEffectPair(procSpell->Id, effIndex+1); for(AuraMap::const_iterator itr = pVictim->GetAuras().lower_bound(spair); itr != pVictim->GetAuras().upper_bound(spair); ++itr) { if (itr->second->GetCasterGUID()==GetGUID()) |