308 if (!(*itr).GetAffectedEffectsMask(entry))
309 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnEffectLaunch` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
312 if (!(*itr).GetAffectedEffectsMask(entry))
313 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnEffectLaunchTarget` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
316 if (!(*itr).GetAffectedEffectsMask(entry))
317 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnEffectHit` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
320 if (!(*itr).GetAffectedEffectsMask(entry))
321 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnEffectHitTarget` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
324 if (!(*itr).GetAffectedEffectsMask(entry))
325 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnEffectSuccessfulDispel` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
328 if (!(*itr).GetAffectedEffectsMask(entry))
329 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnObjectAreaTargetSelect` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
332 if (!(*itr).GetAffectedEffectsMask(entry))
333 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnObjectTargetSelect` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
336 if (!(*itr).GetAffectedEffectsMask(entry))
337 TC_LOG_ERROR(
"scripts",
"Spell `%u` Effect `%s` of script `%s` did not match dbc effect data - handler bound to hook `OnDestinationTargetSelect` of SpellScript won't be executed", entry->Id, (*itr).ToString().c_str(),
m_scriptName->c_str());
virtual bool _Validate(SpellInfo const *entry)
Definition: SpellScript.cpp:24
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition: SpellScript.h:310
HookList< EffectHandler > OnEffectHit
Definition: SpellScript.h:294
HookList< DestinationTargetSelectHandler > OnDestinationTargetSelect
Definition: SpellScript.h:320
HookList< EffectHandler > OnEffectLaunchTarget
Definition: SpellScript.h:293
HookList< ObjectTargetSelectHandler > OnObjectTargetSelect
Definition: SpellScript.h:315
HookList< EffectHandler > OnEffectSuccessfulDispel
Definition: SpellScript.h:296
HookList< EffectHandler > OnEffectHitTarget
Definition: SpellScript.h:295
std::string const * m_scriptName
Definition: SpellScript.h:106
HookList< EffectHandler > OnEffectLaunch
Definition: SpellScript.h:292
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207