mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Check if precast spell exists before trying to cast it. (Otherwise charge-like spells spam console a lot)
--HG-- branch : trunk
This commit is contained in:
@@ -1421,7 +1421,7 @@ void Spell::DoTriggersOnSpellHit(Unit *unit)
|
||||
// Cast Avenging Wrath Marker
|
||||
m_caster->CastSpell(unit,61987, true, m_CastItem);
|
||||
}
|
||||
else
|
||||
else if (sSpellStore.LookupEntry(m_preCastSpell))
|
||||
m_caster->CastSpell(unit,m_preCastSpell, true, m_CastItem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user