mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[9925] Add more log filters
* damage - different direct damage calculation tracing * combat - combat state updates, roll attack result and etc * spell_cast - spell cast progress and aura apply
This commit is contained in:
parent
b6d7365ac9
commit
d86dcd60d7
15 changed files with 89 additions and 81 deletions
|
|
@ -366,7 +366,7 @@ void Creature::Update(uint32 diff)
|
|||
{
|
||||
if( m_respawnTime <= time(NULL) )
|
||||
{
|
||||
DEBUG_LOG("Respawning...");
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "Respawning...");
|
||||
m_respawnTime = 0;
|
||||
lootForPickPocketed = false;
|
||||
lootForBody = false;
|
||||
|
|
@ -411,7 +411,7 @@ void Creature::Update(uint32 diff)
|
|||
if (IsInWorld()) // can be despawned by update pool
|
||||
{
|
||||
RemoveCorpse();
|
||||
DEBUG_LOG("Removing corpse... %u ", GetEntry());
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "Removing corpse... %u ", GetEntry());
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -443,7 +443,7 @@ void Creature::Update(uint32 diff)
|
|||
if (IsInWorld()) // can be despawned by update pool
|
||||
{
|
||||
RemoveCorpse();
|
||||
DEBUG_LOG("Removing alive corpse... %u ", GetEntry());
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "Removing alive corpse... %u ", GetEntry());
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
|
@ -606,7 +606,7 @@ bool Creature::AIM_Initialize()
|
|||
// make sure nothing can change the AI during AI update
|
||||
if(m_AI_locked)
|
||||
{
|
||||
DEBUG_LOG("AIM_Initialize: failed to init, locked.");
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "AIM_Initialize: failed to init, locked.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1595,7 +1595,7 @@ void Creature::SendAIReaction(AiReaction reactionType)
|
|||
|
||||
((WorldObject*)this)->SendMessageToSet(&data, true);
|
||||
|
||||
DEBUG_LOG("WORLD: Sent SMSG_AI_REACTION, type %u.", reactionType);
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "WORLD: Sent SMSG_AI_REACTION, type %u.", reactionType);
|
||||
}
|
||||
|
||||
void Creature::CallAssistance()
|
||||
|
|
@ -1809,7 +1809,7 @@ bool Creature::LoadCreaturesAddon(bool reload)
|
|||
|
||||
Aura* AdditionalAura = CreateAura(AdditionalSpellInfo, cAura->effect_idx, NULL, this, this, 0);
|
||||
AddAura(AdditionalAura);
|
||||
DEBUG_LOG("Spell: %u with Aura %u added to creature (GUIDLow: %u Entry: %u )", cAura->spell_id, AdditionalSpellInfo->EffectApplyAuraName[EFFECT_INDEX_0],GetGUIDLow(),GetEntry());
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell: %u with Aura %u added to creature (GUIDLow: %u Entry: %u )", cAura->spell_id, AdditionalSpellInfo->EffectApplyAuraName[EFFECT_INDEX_0],GetGUIDLow(),GetEntry());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue