aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-01 21:43:30 -0600
committermegamage <none@none>2009-01-01 21:43:30 -0600
commitf415654302d9c0ef2909d9de1aa928fa72b399f4 (patch)
tree1d29fc72f39ec7ecdf48090494c8077468f7a3d6 /src
parent4b8d590774563c08667c5933d6ce2255c0c08108 (diff)
*Fix the bug that sap cannot let sitting player stand.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 73a0c114704..96ce55d5540 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -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);
+ }
}
}