*Fix the bug that sap cannot let sitting player stand.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-01 21:43:30 -06:00
parent 4b8d590774
commit f415654302

View File

@@ -1091,6 +1091,11 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
{
m_caster->CombatStart(unit);
}
else if(spellmgr.GetSpellCustomAttr(m_spellInfo->Id) & SPELL_ATTR_CU_AURA_CC)
{
if(!unit->IsStandState())
unit->SetStandState(PLAYER_STATE_NONE);
}
}
}