aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-09 18:15:27 -0600
committermegamage <none@none>2009-03-09 18:15:27 -0600
commitcd5088845d4d713fdfd10c035012b2d15e039a49 (patch)
tree881061859702f521aa0b665bf331e96285354f26 /src/game/SpellEffects.cpp
parentbb8dedb5817898c38a999178d4a4c64d01b62b9a (diff)
[7434] Fix one paladin spell bonus Author: rechapa79
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 8e289a77112..8215d18d8a2 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -662,6 +662,11 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
int32 count = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
damage += count * int32(averange * IN_MILISECONDS) / m_caster->GetAttackTime(BASE_ATTACK);
}
+ // Shield of Righteousness
+ else if(m_spellInfo->SpellFamilyFlags&0x0010000000000000LL)
+ {
+ damage+=int32(m_caster->GetShieldBlockValue());
+ }
break;
}
}