[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); Unit* target = GetTargetByType(action.cast.target, pActionInvoker, pAIEventSender, spellId, selectFlags);
if (!target) 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; return;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "12698" #define REVISION_NR "12699"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__