aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authormyran2 <henrytgordon@gmail.com>2016-01-22 20:27:48 +0100
committerShauren <shauren.trinity@gmail.com>2016-01-22 20:27:48 +0100
commit2652d700e1a40f90b3d219a3cc807ad2efb2b739 (patch)
tree47d873b15a7fad76dd4a3b435ef0b86b3f8cfe3e /src/server/game/Spells/SpellEffects.cpp
parentd3be63d0c8dc9444c1edd649bad6193bf065a25d (diff)
Core/Spells: Updated combo point handing
Closes #15996
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index b993951db55..be996e566e0 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -3011,7 +3011,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
if (m_spellInfo->SpellFamilyFlags[0] & 0x2000000)
{
if (m_caster->GetTypeId() == TYPEID_PLAYER)
- m_caster->ToPlayer()->AddComboPoints(unitTarget, 1, this);
+ m_caster->ToPlayer()->AddComboPoints(1, this);
// 50% more damage with daggers
if (m_caster->GetTypeId() == TYPEID_PLAYER)
if (Item* item = m_caster->ToPlayer()->GetWeaponForAttack(m_attackType, true))
@@ -3034,7 +3034,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
if (m_spellInfo->SpellFamilyFlags[1] & 0x400)
{
if (m_caster->GetTypeId() == TYPEID_PLAYER)
- m_caster->ToPlayer()->AddComboPoints(unitTarget, 1, this);
+ m_caster->ToPlayer()->AddComboPoints(1, this);
}
// Shred, Maul - Rend and Tear
else if (m_spellInfo->SpellFamilyFlags[0] & 0x00008800 && unitTarget->HasAuraState(AURA_STATE_BLEEDING))
@@ -3857,7 +3857,7 @@ void Spell::EffectAddComboPoints(SpellEffIndex /*effIndex*/)
if (damage <= 0)
return;
- m_caster->m_movedPlayer->AddComboPoints(unitTarget, damage, this);
+ m_caster->m_movedPlayer->AddComboPoints(damage, this);
}
void Spell::EffectDuel(SpellEffIndex effIndex)