mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10799] Add GetGuidStr() short call for GetObjectGuid().GetString() and use it.
This commit is contained in:
parent
2fa4cf41a7
commit
ce7b98c45e
21 changed files with 122 additions and 121 deletions
|
|
@ -6558,7 +6558,7 @@ void Aura::PeriodicTick()
|
|||
target->CalculateDamageAbsorbAndResist(pCaster, GetSpellSchoolMask(spellProto), DOT, pdamage, &absorb, &resist, !(GetSpellProto()->AttributesEx2 & SPELL_ATTR_EX2_CANT_REFLECTED));
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s attacked %s for %u dmg inflicted by %u abs is %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, GetId(),absorb);
|
||||
GetCasterGuid().GetString().c_str(), target->GetGuidStr().c_str(), pdamage, GetId(),absorb);
|
||||
|
||||
pCaster->DealDamageMods(target, pdamage, &absorb);
|
||||
|
||||
|
|
@ -6650,7 +6650,7 @@ void Aura::PeriodicTick()
|
|||
target->CalculateDamageAbsorbAndResist(pCaster, GetSpellSchoolMask(spellProto), DOT, pdamage, &absorb, &resist, !(spellProto->AttributesEx2 & SPELL_ATTR_EX2_CANT_REFLECTED));
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s health leech of %s for %u dmg inflicted by %u abs is %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, GetId(),absorb);
|
||||
GetCasterGuid().GetString().c_str(), target->GetGuidStr().c_str(), pdamage, GetId(),absorb);
|
||||
|
||||
pCaster->DealDamageMods(target, pdamage, &absorb);
|
||||
|
||||
|
|
@ -6740,7 +6740,7 @@ void Aura::PeriodicTick()
|
|||
pdamage -= absorbHeal;
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s heal of %s for %u health (absorbed %u) inflicted by %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, absorbHeal, GetId());
|
||||
GetCasterGuid().GetString().c_str(), target->GetGuidStr().c_str(), pdamage, absorbHeal, GetId());
|
||||
|
||||
int32 gain = target->ModifyHealth(pdamage);
|
||||
SpellPeriodicAuraLogInfo pInfo(this, pdamage, (pdamage - uint32(gain)), absorbHeal, 0, 0.0f, isCrit);
|
||||
|
|
@ -6835,7 +6835,7 @@ void Aura::PeriodicTick()
|
|||
}
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s power leech of %s for %u dmg inflicted by %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, GetId());
|
||||
GetCasterGuid().GetString().c_str(), target->GetGuidStr().c_str(), pdamage, GetId());
|
||||
|
||||
int32 drain_amount = target->GetPower(power) > pdamage ? pdamage : target->GetPower(power);
|
||||
|
||||
|
|
@ -6881,7 +6881,7 @@ void Aura::PeriodicTick()
|
|||
uint32 pdamage = m_modifier.m_amount > 0 ? m_modifier.m_amount : 0;
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s energize %s for %u dmg inflicted by %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, GetId());
|
||||
GetCasterGuid().GetString().c_str(), target->GetGuidStr().c_str(), pdamage, GetId());
|
||||
|
||||
if(m_modifier.m_miscvalue < 0 || m_modifier.m_miscvalue >= MAX_POWERS)
|
||||
break;
|
||||
|
|
@ -6912,7 +6912,7 @@ void Aura::PeriodicTick()
|
|||
uint32 pdamage = uint32(target->GetMaxPower(POWER_MANA) * amount / 100);
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s energize %s for %u mana inflicted by %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, GetId());
|
||||
GetCasterGuid().GetString().c_str(), target->GetGuidStr().c_str(), pdamage, GetId());
|
||||
|
||||
if(target->GetMaxPower(POWER_MANA) == 0)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue