diff options
| author | megamage <none@none> | 2009-01-03 11:01:33 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-03 11:01:33 -0600 |
| commit | b70c57bbd6b69f5dacfc3c5355d8b61ab5762646 (patch) | |
| tree | 42bac2b454a4664dd6a94dc9520f90e01d3d4fd1 /src/game/Spell.cpp | |
| parent | 803a834b0d91adafe76e3ecbed9119d19ebe12f3 (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.cpp | 8 |
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) |
