mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
268bb3221b
commit
6fbe7f4307
3 changed files with 40 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue