aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-03 11:01:33 -0600
committermegamage <none@none>2009-01-03 11:01:33 -0600
commitb70c57bbd6b69f5dacfc3c5355d8b61ab5762646 (patch)
tree42bac2b454a4664dd6a94dc9520f90e01d3d4fd1 /src/game/Spell.cpp
parent803a834b0d91adafe76e3ecbed9119d19ebe12f3 (diff)
*Mangos [7013] Rename recently added function for consistent with already existed. Use it for old cases. By VladimirMangos.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 30978ac6d99..3019b67b853 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3489,9 +3489,9 @@ uint8 Spell::CanCast(bool strict)
return SPELL_FAILED_CASTER_AURASTATE;
// Caster aura req check if need
- if(m_spellInfo->casterAuraSpell && !m_caster->isAuraPresent(m_spellInfo->casterAuraSpell))
+ if(m_spellInfo->casterAuraSpell && !m_caster->HasAura(m_spellInfo->casterAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
- if(m_spellInfo->excludeCasterAuraSpell && m_caster->isAuraPresent(m_spellInfo->excludeCasterAuraSpell))
+ if(m_spellInfo->excludeCasterAuraSpell && m_caster->HasAura(m_spellInfo->excludeCasterAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
// cancel autorepeat spells if cast start when moving
@@ -3513,9 +3513,9 @@ uint8 Spell::CanCast(bool strict)
return SPELL_FAILED_TARGET_AURASTATE;
// Target aura req check if need
- if(m_spellInfo->targetAuraSpell && !target->isAuraPresent(m_spellInfo->targetAuraSpell))
+ if(m_spellInfo->targetAuraSpell && !target->HasAura(m_spellInfo->targetAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
- if(m_spellInfo->excludeTargetAuraSpell && target->isAuraPresent(m_spellInfo->excludeTargetAuraSpell))
+ if(m_spellInfo->excludeTargetAuraSpell && target->HasAura(m_spellInfo->excludeTargetAuraSpell))
return SPELL_FAILED_CASTER_AURASTATE;
if(target != m_caster)