[Core] Start dbscripts_on_spell for SPELL_EFFECT_TRIGGER_MISSILE with missing spell id (c2645)

This commit is contained in:
xfurry 2015-03-26 12:24:57 +00:00 committed by Antz
parent 25cb227e14
commit 64c781f42e

View File

@ -1383,8 +1383,14 @@ void Spell::EffectTriggerMissileSpell(SpellEffectIndex effect_idx)
if (!spellInfo)
{
sLog.outError("EffectTriggerMissileSpell of spell %u (eff: %u): triggering unknown spell id %u",
m_spellInfo->Id, effect_idx, triggered_spell_id);
if (unitTarget)
{
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell ScriptStart spellid %u in EffectTriggerMissileSpell", m_spellInfo->Id);
m_caster->GetMap()->ScriptsStart(sSpellScripts, m_spellInfo->Id, m_caster, unitTarget);
}
else
sLog.outError("EffectTriggerMissileSpell of spell %u (eff: %u): triggering unknown spell id %u",
m_spellInfo->Id, effect_idx, triggered_spell_id);
return;
}