[9363] Implement new way spell 1535 and ranks work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also implemented spell casting requirement check and proper animation.
This commit is contained in:
laise 2010-02-12 10:57:50 +03:00 committed by VladimirMangos
parent 268bb3221b
commit 6fbe7f4307
3 changed files with 40 additions and 1 deletions

View file

@ -4485,6 +4485,13 @@ SpellCastResult Spell::CheckCast(bool strict)
if(m_targets.getUnitTarget() && !m_caster->IsFriendlyTo(m_targets.getUnitTarget()) && !m_caster->HasInArc( M_PI_F, m_targets.getUnitTarget() ))
return SPELL_FAILED_UNIT_NOT_INFRONT;
}
// Fire Nova
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellIconID == 33)
{
// fire totems slot
if (!m_caster->m_TotemSlot[0])
return SPELL_FAILED_TOTEMS;
}
break;
}
case SPELL_EFFECT_SCHOOL_DAMAGE: