*Allow pet to have combo points.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-09-01 00:17:39 -05:00
parent 83ea85f9e4
commit 33a0155281
8 changed files with 49 additions and 25 deletions

View File

@@ -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)