aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMitchesD <majklprofik@seznam.cz>2015-05-27 00:23:31 +0200
committerMitchesD <majklprofik@seznam.cz>2015-05-27 00:23:31 +0200
commit1f71eb7210ae524d8006e51a560bf186bbd3653f (patch)
tree3a77b9ca9bbd2affcd4dac89062abc3715a7c266 /src
parentca5ea3c85d48327a121832c0f2c693faab112407 (diff)
Core/Packets: fixed logic fail caused by misunderstanding of multistrike
* when multistrike is implemented, we have to do some changes here
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp34
1 files changed, 13 insertions, 21 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index fd33151b37a..200635748c2 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -4826,27 +4826,19 @@ void Unit::SendPeriodicAuraLog(SpellPeriodicAuraLogInfo* info)
data.CasterGUID = aura->GetCasterGUID();
data.SpellID = aura->GetId();
- if (SpellInfo const* spellInfo = aura->GetSpellInfo())
- {
- for (SpellEffectInfoMap::const_iterator itr = spellInfo->_effects.begin(); itr != spellInfo->_effects.end(); ++itr)
- {
- for (SpellEffectInfo const* effect : itr->second)
- {
- WorldPackets::CombatLog::SpellPeriodicAuraLog::SpellLogEffect spellLogEffect;
- spellLogEffect.Effect = effect->Effect;
- spellLogEffect.Amount = info->damage;
- spellLogEffect.OverHealOrKill = info->overDamage;
- spellLogEffect.SchoolMaskOrPower = aura->GetMiscValue();
- spellLogEffect.AbsorbedOrAmplitude = info->absorb;
- spellLogEffect.Resisted = info->resist;
- spellLogEffect.Crit = info->critical;
- spellLogEffect.Multistrike = false; // NYI
- /// @todo: implement debug info
-
- data.Effects.push_back(spellLogEffect);
- }
- }
- }
+ /// @todo: should send more logs in one packet when multistrike
+ WorldPackets::CombatLog::SpellPeriodicAuraLog::SpellLogEffect spellLogEffect;
+ spellLogEffect.Effect = aura->GetAuraType();
+ spellLogEffect.Amount = info->damage;
+ spellLogEffect.OverHealOrKill = info->overDamage;
+ spellLogEffect.SchoolMaskOrPower = aura->GetSpellInfo()->GetSchoolMask();
+ spellLogEffect.AbsorbedOrAmplitude = info->absorb;
+ spellLogEffect.Resisted = info->resist;
+ spellLogEffect.Crit = info->critical;
+ spellLogEffect.Multistrike = false; // NYI
+ /// @todo: implement debug info
+
+ data.Effects.push_back(spellLogEffect);
SendMessageToSet(data.Write(), true);
}