summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-19 07:37:23 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-19 07:37:23 +0000
commit46dc548da19f0b5875233aeeee2155a24675664c (patch)
tree2d0d08cd2cbcea7cb147bc9295296e0eaa660d5d
parent572548aba1d3cfb2016d8a76a4a252cf171548a0 (diff)
downloadhercules-46dc548da19f0b5875233aeeee2155a24675664c.tar.gz
hercules-46dc548da19f0b5875233aeeee2155a24675664c.tar.bz2
hercules-46dc548da19f0b5875233aeeee2155a24675664c.tar.xz
hercules-46dc548da19f0b5875233aeeee2155a24675664c.zip
* [Fixed]:
- Typo in status.c add_sc() using 'skill' instead of 'sk' as index, resulting in filling the SkillStatusChangeTableArray with junk data. - > NEEDS CONFIRMATION < Ends casting if player is knocked with freezing/stun/whatever git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7241 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/status.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 651fcea23..3859d1238 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,9 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/18
* [Fixed]:
+ - Typo in status.c add_sc() using 'skill' instead of 'sk' as index, resulting in
+ filling the SkillStatusChangeTableArray with junk data.
+ - > NEEDS CONFIRMATION < Ends casting if player is knocked with freezing/stun/whatever
- Typo in parse_frommap. [Lance]
* [Fixed]:
- clif_initialstatus using SHRT_MAX instead of USHRT_MAX for status_point.
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.