aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-09-01 00:17:39 -0500
committermegamage <none@none>2009-09-01 00:17:39 -0500
commit33a0155281ca0ffb01cf47cddd690249c134ad89 (patch)
treebb016d3c03b5aa07a5e212e7e6590685559dc1c6 /src/game/SpellEffects.cpp
parent83ea85f9e46bbda023fb5d540c08faa10fc980ed (diff)
*Allow pet to have combo points.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 8629c544b28..f3a79fdb96f 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5737,13 +5737,13 @@ void Spell::EffectAddComboPoints(uint32 /*i*/)
if(!unitTarget)
return;
- if(m_caster->GetTypeId() != TYPEID_PLAYER)
+ if(!m_caster->m_movedPlayer)
return;
if(damage <= 0)
return;
- ((Player*)m_caster)->AddComboPoints(unitTarget, damage, this);
+ m_caster->m_movedPlayer->AddComboPoints(unitTarget, damage, this);
}
void Spell::EffectDuel(uint32 i)