diff options
author | Vincent-Michael <Vincent_Michael@gmx.de> | 2015-04-18 18:09:13 +0200 |
---|---|---|
committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2015-04-18 19:17:47 +0200 |
commit | a1fe3cccd80336d2a3eaaa9a25f33759de345a7b (patch) | |
tree | 4a95a1ee1e5c64a43643e17b598f7df18b4e5cdb | |
parent | d74e0d823d96df02822005e7165139b2bf1709de (diff) |
Core/Spells: Cleanup in ca5c939a8951dfb9c5da0757c4c16c00de5a46c5
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 34 | ||||
-rw-r--r-- | src/server/game/Spells/Spell.h | 20 |
2 files changed, 27 insertions, 27 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) diff --git a/src/server/game/Spells/Spell.h b/src/server/game/Spells/Spell.h index d936ebbbf00..ddf6cb055ae 100644 --- a/src/server/game/Spells/Spell.h +++ b/src/server/game/Spells/Spell.h @@ -491,16 +491,16 @@ class Spell void SendSpellGo(); void SendSpellCooldown(); void SendSpellExecuteLog(); - void ExecuteLogEffectTakeTargetPower(int32 effect, Unit* target, uint32 powerType, uint32 points, float amplitude); - void ExecuteLogEffectExtraAttacks(uint8 effect, Unit* victim, uint32 numAttacks); - void ExecuteLogEffectInterruptCast(uint8 effect, Unit* victim, uint32 spellId); - void ExecuteLogEffectDurabilityDamage(uint8 effect, Unit* victim, int32 itemId, int32 amount); - void ExecuteLogEffectOpenLock(uint8 effect, Object* obj); - void ExecuteLogEffectCreateItem(uint8 effect, uint32 entry); - void ExecuteLogEffectDestroyItem(uint8 effect, uint32 entry); - void ExecuteLogEffectSummonObject(uint8 effect, WorldObject* obj); - void ExecuteLogEffectUnsummonObject(uint8 effect, WorldObject* obj); - void ExecuteLogEffectResurrect(uint8 effect, Unit* target); + void ExecuteLogEffectTakeTargetPower(uint8 effIndex, Unit* target, uint32 powerType, uint32 points, float amplitude); + void ExecuteLogEffectExtraAttacks(uint8 effIndex, Unit* victim, uint32 numAttacks); + void ExecuteLogEffectInterruptCast(uint8 effIndex, Unit* victim, uint32 spellId); + void ExecuteLogEffectDurabilityDamage(uint8 effIndex, Unit* victim, int32 itemId, int32 amount); + void ExecuteLogEffectOpenLock(uint8 effIndex, Object* obj); + void ExecuteLogEffectCreateItem(uint8 effIndex, uint32 entry); + void ExecuteLogEffectDestroyItem(uint8 effIndex, uint32 entry); + void ExecuteLogEffectSummonObject(uint8 effIndex, WorldObject* obj); + void ExecuteLogEffectUnsummonObject(uint8 effIndex, WorldObject* obj); + void ExecuteLogEffectResurrect(uint8 effIndex, Unit* target); void CleanupExecuteLogList(); void SendInterrupted(uint8 result); void SendChannelUpdate(uint32 time); |