diff options
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index c7e0a16c9ad..e32f55bfe35 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4125,7 +4125,7 @@ void Spell::SendSpellExecuteLog() m_caster->SendMessageToSet(spellExecuteLog.Write(), true); } -void Spell::ExecuteLogEffectTakeTargetPower(int32 effect, Unit* target, uint32 powerType, uint32 points, float amplitude) +void Spell::ExecuteLogEffectTakeTargetPower(uint8 effIndex, Unit* target, uint32 powerType, uint32 points, float amplitude) { SpellLogEffectPowerDrainParams spellLogEffectPowerDrainParams; @@ -4134,19 +4134,19 @@ void Spell::ExecuteLogEffectTakeTargetPower(int32 effect, Unit* target, uint32 p spellLogEffectPowerDrainParams.PowerType = powerType; spellLogEffectPowerDrainParams.Amplitude = amplitude; - _powerDrainTargets[effect].push_back(spellLogEffectPowerDrainParams); + _powerDrainTargets[effIndex].push_back(spellLogEffectPowerDrainParams); } -void Spell::ExecuteLogEffectExtraAttacks(uint8 effect, Unit* victim, uint32 numAttacks) +void Spell::ExecuteLogEffectExtraAttacks(uint8 effIndex, Unit* victim, uint32 numAttacks) { SpellLogEffectExtraAttacksParams spellLogEffectExtraAttacksParams; spellLogEffectExtraAttacksParams.Victim = victim->GetGUID(); spellLogEffectExtraAttacksParams.NumAttacks = numAttacks; - _extraAttacksTargets[effect].push_back(spellLogEffectExtraAttacksParams); + _extraAttacksTargets[effIndex].push_back(spellLogEffectExtraAttacksParams); } -void Spell::ExecuteLogEffectInterruptCast(uint8 /*effect*/, Unit* victim, uint32 spellId) +void Spell::ExecuteLogEffectInterruptCast(uint8 /*effIndex*/, Unit* victim, uint32 spellId) { ObjectGuid casterGuid = m_caster->GetGUID(); ObjectGuid targetGuid = victim->GetGUID(); @@ -4191,54 +4191,54 @@ void Spell::ExecuteLogEffectInterruptCast(uint8 /*effect*/, Unit* victim, uint32 m_caster->SendMessageToSet(&data, true); } -void Spell::ExecuteLogEffectDurabilityDamage(uint8 effect, Unit* victim, int32 itemId, int32 amount) +void Spell::ExecuteLogEffectDurabilityDamage(uint8 effIndex, Unit* victim, int32 itemId, int32 amount) { SpellLogEffectDurabilityDamageParams spellLogEffectDurabilityDamageParams; spellLogEffectDurabilityDamageParams.Victim = victim->GetGUID(); spellLogEffectDurabilityDamageParams.ItemID = itemId; spellLogEffectDurabilityDamageParams.Amount = amount; - _durabilityDamageTargets[effect].push_back(spellLogEffectDurabilityDamageParams); + _durabilityDamageTargets[effIndex].push_back(spellLogEffectDurabilityDamageParams); } -void Spell::ExecuteLogEffectOpenLock(uint8 effect, Object* obj) +void Spell::ExecuteLogEffectOpenLock(uint8 effIndex, Object* obj) { SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams; spellLogEffectGenericVictimParams.Victim = obj->GetGUID(); - _genericVictimTargets[effect].push_back(spellLogEffectGenericVictimParams); + _genericVictimTargets[effIndex].push_back(spellLogEffectGenericVictimParams); } -void Spell::ExecuteLogEffectCreateItem(uint8 effect, uint32 entry) +void Spell::ExecuteLogEffectCreateItem(uint8 effIndex, uint32 entry) { SpellLogEffectTradeSkillItemParams spellLogEffectTradeSkillItemParams; spellLogEffectTradeSkillItemParams.ItemID = entry; - _tradeSkillTargets[effect].push_back(spellLogEffectTradeSkillItemParams); + _tradeSkillTargets[effIndex].push_back(spellLogEffectTradeSkillItemParams); } -void Spell::ExecuteLogEffectDestroyItem(uint8 effect, uint32 entry) +void Spell::ExecuteLogEffectDestroyItem(uint8 effIndex, uint32 entry) { SpellLogEffectFeedPetParams spellLogEffectFeedPetParams; spellLogEffectFeedPetParams.ItemID = entry; - _feedPetTargets[effect].push_back(spellLogEffectFeedPetParams); + _feedPetTargets[effIndex].push_back(spellLogEffectFeedPetParams); } -void Spell::ExecuteLogEffectSummonObject(uint8 effect, WorldObject* obj) +void Spell::ExecuteLogEffectSummonObject(uint8 effIndex, WorldObject* obj) { SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams; spellLogEffectGenericVictimParams.Victim = obj->GetGUID(); - _genericVictimTargets[effect].push_back(spellLogEffectGenericVictimParams); + _genericVictimTargets[effIndex].push_back(spellLogEffectGenericVictimParams); } -void Spell::ExecuteLogEffectUnsummonObject(uint8 effect, WorldObject* obj) +void Spell::ExecuteLogEffectUnsummonObject(uint8 effIndex, WorldObject* obj) { SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams; spellLogEffectGenericVictimParams.Victim = obj->GetGUID(); - _genericVictimTargets[effect].push_back(spellLogEffectGenericVictimParams); + _genericVictimTargets[effIndex].push_back(spellLogEffectGenericVictimParams); } void Spell::ExecuteLogEffectResurrect(uint8 effect, Unit* target) |