All pastes #944005 Raw Edit

Something

public text v1 · immutable
·published 2008-03-15 19:37 UTC
rendered paste body
    // Clear combo at finish state and add combo points from Ruthlessness
    if(m_caster->GetTypeId() == TYPEID_PLAYER) {
        ((Player*)m_caster)->ResetComboPointsIfNeed(m_spellInfo);
        if (((Player*)m_caster)->GetComboPointsFinish() && ((Player*)m_caster)->GetComboTarget())
        {
            ((Player*)m_caster)->AddComboPoints(((Player*)m_caster)->GetComboTarget(),((Player*)m_caster)->GetComboPointsFinish());
            ((Player*)m_caster)->ClearComboPointsFinish();
        }
    }