summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 06ae11d33..59182d648 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -66,8 +66,8 @@ static void add_sc(int skill, int sc)
ShowError("add_sc: Unsupported skill id %d\n", skill);
return;
}
- if (SkillStatusChangeTableArray[skill]==-1)
- SkillStatusChangeTableArray[skill] = sc;
+ if (SkillStatusChangeTableArray[sk]==-1) // skill -> sk [Lance]
+ SkillStatusChangeTableArray[sk] = sc;
if (StatusSkillChangeTable[sc]==0)
StatusSkillChangeTable[sc] = skill;
}
@@ -4107,6 +4107,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
case SC_STUN:
if (sc->opt1)
return 0; //Cannot override other opt1 status changes. [Skotlex]
+ // Cancel all casting upon sleep/stun/freeze/stone [Lance]
+ // http://www.eathena.ws/board/index.php?showtopic=102679
+ unit_skillcastcancel(bl, 0);
break;
case SC_CURSE:
//Dark Elementals are inmune to curse.