Core/Log: Change periodic spell notificiations to DEBUG-level and set it as a unique logging-mechanism named "spell.periodic"
(cherry picked from commit 8c8ca2ab8de4ced62b1bc9205c8bc72c9b3c8012) Conflicts: src/server/game/Spells/Auras/SpellAuraEffects.cpp
This commit is contained in:
@@ -5996,7 +5996,7 @@ void AuraEffect::HandlePeriodicDamageAurasTick(Unit* target, Unit* caster) const
|
||||
|
||||
caster->CalcAbsorbResist(target, GetSpellInfo()->GetSchoolMask(), DOT, damage, &absorb, &resist, GetSpellInfo());
|
||||
|
||||
TC_LOG_INFO("spells", "PeriodicTick: %s attacked %s for %u dmg inflicted by %u absorb is %u",
|
||||
TC_LOG_DEBUG("spells.periodic", "PeriodicTick: %s attacked %s for %u dmg inflicted by %u absorb is %u",
|
||||
GetCasterGUID().ToString().c_str(), target->GetGUID().ToString().c_str(), damage, GetId(), absorb);
|
||||
|
||||
caster->DealDamageMods(target, damage, &absorb);
|
||||
@@ -6098,7 +6098,7 @@ void AuraEffect::HandlePeriodicHealthLeechAuraTick(Unit* target, Unit* caster) c
|
||||
if (target->GetHealth() < damage)
|
||||
damage = uint32(target->GetHealth());
|
||||
|
||||
TC_LOG_INFO("spells", "PeriodicTick: %s health leech of %s for %u dmg inflicted by %u abs is %u",
|
||||
TC_LOG_DEBUG("spells.periodic", "PeriodicTick: %s health leech of %s for %u dmg inflicted by %u abs is %u",
|
||||
GetCasterGUID().ToString().c_str(), target->GetGUID().ToString().c_str(), damage, GetId(), absorb);
|
||||
|
||||
caster->SendSpellNonMeleeDamageLog(target, GetId(), damage, GetSpellInfo()->GetSchoolMask(), absorb, resist, false, 0, crit);
|
||||
@@ -6226,7 +6226,7 @@ void AuraEffect::HandlePeriodicHealAurasTick(Unit* target, Unit* caster) const
|
||||
if (crit)
|
||||
damage = caster->SpellCriticalHealingBonus(m_spellInfo, damage, target);
|
||||
|
||||
TC_LOG_INFO("spells", "PeriodicTick: %s heal of %s for %u health inflicted by %u",
|
||||
TC_LOG_DEBUG("spells.periodic", "PeriodicTick: %s heal of %s for %u health inflicted by %u",
|
||||
GetCasterGUID().ToString().c_str(), target->GetGUID().ToString().c_str(), damage, GetId());
|
||||
|
||||
uint32 absorb = 0;
|
||||
@@ -6297,7 +6297,7 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con
|
||||
drainAmount = maxmana;
|
||||
}
|
||||
|
||||
TC_LOG_INFO("spells", "PeriodicTick: %s power leech of %s for %u dmg inflicted by %u",
|
||||
TC_LOG_DEBUG("spells.periodic", "PeriodicTick: %s power leech of %s for %u dmg inflicted by %u",
|
||||
GetCasterGUID().ToString().c_str(), target->GetGUID().ToString().c_str(), drainAmount, GetId());
|
||||
|
||||
int32 drainedAmount = -target->ModifyPower(powerType, -drainAmount);
|
||||
@@ -6354,7 +6354,7 @@ void AuraEffect::HandleObsModPowerAuraTick(Unit* target, Unit* caster) const
|
||||
|
||||
// ignore negative values (can be result apply spellmods to aura damage
|
||||
uint32 amount = std::max(m_amount, 0) * target->GetMaxPower(powerType) /100;
|
||||
TC_LOG_INFO("spells", "PeriodicTick: %s energize %s for %u dmg inflicted by %u",
|
||||
TC_LOG_DEBUG("spells.periodic", "PeriodicTick: %s energize %s for %u dmg inflicted by %u",
|
||||
GetCasterGUID().ToString().c_str(), target->GetGUID().ToString().c_str(), amount, GetId());
|
||||
|
||||
SpellPeriodicAuraLogInfo pInfo(this, amount, 0, 0, 0, 0.0f, false);
|
||||
@@ -6392,7 +6392,7 @@ void AuraEffect::HandlePeriodicEnergizeAuraTick(Unit* target, Unit* caster) cons
|
||||
SpellPeriodicAuraLogInfo pInfo(this, amount, 0, 0, 0, 0.0f, false);
|
||||
target->SendPeriodicAuraLog(&pInfo);
|
||||
|
||||
TC_LOG_INFO("spells", "PeriodicTick: %s energize %s for %u dmg inflicted by %u",
|
||||
TC_LOG_DEBUG("spells.periodic", "PeriodicTick: %s energize %s for %u dmg inflicted by %u",
|
||||
GetCasterGUID().ToString().c_str(), target->GetGUID().ToString().c_str(), amount, GetId());
|
||||
|
||||
int32 gain = target->ModifyPower(powerType, amount);
|
||||
|
||||
@@ -3242,6 +3242,7 @@ Logger.sql.sql=5,Console DBErrors
|
||||
#Logger.scripts.ai=3,Console Server
|
||||
#Logger.server.bnetserver=3,Console Server
|
||||
#Logger.spells=3,Console Server
|
||||
#Logger.spells.periodic=3,Console Server
|
||||
#Logger.sql.dev=3,Console Server
|
||||
#Logger.sql.driver=3,Console Server
|
||||
#Logger.warden=3,Console Server
|
||||
|
||||
Reference in New Issue
Block a user