diff options
author | QAston <none@none> | 2009-08-28 19:46:09 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-28 19:46:09 +0200 |
commit | 4d8808879df730669a050bafe3ad9890131b35a9 (patch) | |
tree | 1009a2ea9bbdf426a06f217a1af371d1c5d5029d /src/game/Unit.cpp | |
parent | ab5f515f21d1f9e735e8b2c91a64f2dd02512ed5 (diff) |
*Allow SPELL_AURA_ABILITY_PERIODIC_CRIT to make PERIODIC_LEECH auras crit.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-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 d6170c323d9..a828f634ec9 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8478,7 +8478,7 @@ uint32 Unit::BuildAuraStateUpdateForTarget(Unit * target) const return auraStates; } -bool Unit::HasAuraState(AuraState flag, SpellEntry const *spellProto, Unit * Caster) const +bool Unit::HasAuraState(AuraState flag, SpellEntry const *spellProto, Unit const * Caster) const { if (Caster) { @@ -9492,7 +9492,7 @@ int32 Unit::SpellBaseDamageBonusForVictim(SpellSchoolMask schoolMask, Unit *pVic return TakenAdvertisedBenefit; } -bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType) +bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType) const { // not critting spell if((spellProto->AttributesEx2 & SPELL_ATTR_EX2_CANT_CRIT)) |