mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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
|
|
@ -3295,7 +3295,7 @@ void Spell::SendSpellStart()
|
|||
if (!IsNeedSendToClient())
|
||||
return;
|
||||
|
||||
DEBUG_LOG("Sending SMSG_SPELL_START id=%u", m_spellInfo->Id);
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Sending SMSG_SPELL_START id=%u", m_spellInfo->Id);
|
||||
|
||||
uint32 castFlags = CAST_FLAG_UNKNOWN1;
|
||||
if (IsRangedSpell())
|
||||
|
|
@ -3353,7 +3353,7 @@ void Spell::SendSpellGo()
|
|||
if(!IsNeedSendToClient())
|
||||
return;
|
||||
|
||||
DEBUG_LOG("Sending SMSG_SPELL_GO id=%u", m_spellInfo->Id);
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Sending SMSG_SPELL_GO id=%u", m_spellInfo->Id);
|
||||
|
||||
uint32 castFlags = CAST_FLAG_UNKNOWN3;
|
||||
if(IsRangedSpell())
|
||||
|
|
@ -4017,7 +4017,7 @@ void Spell::HandleThreatSpells(uint32 spellId)
|
|||
|
||||
m_targets.getUnitTarget()->AddThreat(m_caster, float(threat), false, GetSpellSchoolMask(m_spellInfo), m_spellInfo);
|
||||
|
||||
DEBUG_LOG("Spell %u, rank %u, added an additional %i threat", spellId, sSpellMgr.GetSpellRank(spellId), threat);
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell %u, rank %u, added an additional %i threat", spellId, sSpellMgr.GetSpellRank(spellId), threat);
|
||||
}
|
||||
|
||||
void Spell::HandleEffects(Unit *pUnitTarget,Item *pItemTarget,GameObject *pGOTarget,SpellEffectIndex i, float DamageMultiplier)
|
||||
|
|
@ -4030,11 +4030,10 @@ void Spell::HandleEffects(Unit *pUnitTarget,Item *pItemTarget,GameObject *pGOTar
|
|||
|
||||
damage = int32(CalculateDamage(i, unitTarget) * DamageMultiplier);
|
||||
|
||||
DEBUG_LOG("Spell %u Effect%d : %u", m_spellInfo->Id, i, eff);
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell %u Effect%d : %u", m_spellInfo->Id, i, eff);
|
||||
|
||||
if(eff < TOTAL_SPELL_EFFECTS)
|
||||
{
|
||||
//DEBUG_LOG( "WORLD: Spell FX %d < TOTAL_SPELL_EFFECTS ", eff);
|
||||
(*this.*SpellEffects[eff])(i);
|
||||
}
|
||||
else
|
||||
|
|
@ -5987,7 +5986,7 @@ void Spell::Delayed()
|
|||
else
|
||||
m_timer += delaytime;
|
||||
|
||||
DETAIL_LOG("Spell %u partially interrupted for (%d) ms at damage", m_spellInfo->Id, delaytime);
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell %u partially interrupted for (%d) ms at damage", m_spellInfo->Id, delaytime);
|
||||
|
||||
WorldPacket data(SMSG_SPELL_DELAYED, 8+4);
|
||||
data << m_caster->GetPackGUID();
|
||||
|
|
@ -6022,7 +6021,7 @@ void Spell::DelayedChannel()
|
|||
else
|
||||
m_timer -= delaytime;
|
||||
|
||||
DEBUG_LOG("Spell %u partially interrupted for %i ms, new duration: %u ms", m_spellInfo->Id, delaytime, m_timer);
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell %u partially interrupted for %i ms, new duration: %u ms", m_spellInfo->Id, delaytime, m_timer);
|
||||
|
||||
for(std::list<TargetInfo>::const_iterator ihit = m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue