diff options
| author | QAston@qaston-pc <none@none> | 2009-03-01 12:56:31 +0100 |
|---|---|---|
| committer | QAston@qaston-pc <none@none> | 2009-03-01 12:56:31 +0100 |
| commit | 9e9708f5b7885e30580e3685f7c5971dd1d0b571 (patch) | |
| tree | bb4652065197446f8ad8cf54ad0e58b408bd62d9 /src/game/Unit.cpp | |
| parent | 783714aff351ce60b40e7d15796622b5f4e5d7ca (diff) | |
*Fix Shield Slam damage.
*Fix Glyph of Power Word: Shield. (original patch by Maxxie)
*Fix a typo in 1570.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 2ac67aaa3fa..a6287c07a9c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1973,6 +1973,8 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe AuraList const& vOverRideCS = caster->GetAurasByType(SPELL_AURA_DUMMY); for(AuraList::const_iterator k = vOverRideCS.begin(); k != vOverRideCS.end(); ++k) { + if((*k)->GetSpellProto()->SpellFamilyName != SPELLFAMILY_PRIEST) + continue; switch((*k)->GetModifier()->m_miscvalue) { case 5065: // Rank 1 @@ -1985,7 +1987,6 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe reflectDamage = (*k)->GetModifier()->m_amount * RemainingDamage/100; reflectSpell = 33619; } break; - default: break; } } break; @@ -5455,6 +5456,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu target = this; break; } + // Glyph of Power Word: Shield + case 55672: + { + basepoints0 = damage * triggerAmount/100; + triggered_spell_id = 56160; + break; + } // Oracle Healing Bonus ("Garments of the Oracle" set) case 26169: { |
