[12699] Change Debug Output to EventAIError output if no target is f…

…ound (original author @Schmoozerd)
This commit is contained in:
sanctum32 2013-10-21 08:59:30 +03:00 committed by Antz
parent cd7226f0a7
commit 09b06fc780
2 changed files with 2 additions and 2 deletions

View file

@ -593,7 +593,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
Unit* target = GetTargetByType(action.cast.target, pActionInvoker, pAIEventSender, spellId, selectFlags);
if (!target)
{
sLog.outDebug("CreatureEventAI: NULL target for ACTION_T_CAST creature entry %u casting spell id %u", m_creature->GetEntry(), action.cast.spellId);
sLog.outErrorEventAI("NULL target for ACTION_T_CAST creature entry %u casting spell id %u", m_creature->GetEntry(), action.cast.spellId);
return;
}