summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-19 02:19:07 -0200
committershennetsind <ind@henn.et>2013-11-19 02:19:07 -0200
commitd076f129c90ac9e3a96659488f702f81def1863a (patch)
tree850b8d46a32b2fc972a2cc5a77dece3398c9efce /src/map/script.c
parent54cc3cd435eb400ea0569632ebef2f2da03efc04 (diff)
downloadhercules-d076f129c90ac9e3a96659488f702f81def1863a.tar.gz
hercules-d076f129c90ac9e3a96659488f702f81def1863a.tar.bz2
hercules-d076f129c90ac9e3a96659488f702f81def1863a.tar.xz
hercules-d076f129c90ac9e3a96659488f702f81def1863a.zip
Fixed Bug 7799 - SC_MOONSTAR neverending
Follows up 665f1306a130d4b8c359972bf4e58ef9d3bd9cd8 http://hercules.ws/board/tracker/issue-7799-sc-moonstar/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a3b858131..8d07ca0d1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9697,8 +9697,16 @@ BUILDIN(sc_end) {
if (!sce)
return true;
- if( status->get_sc_type(type)&SC_NO_CLEAR )
- return true;
+ /* status that can't be individually removed (TODO sc_config option?) */
+ switch (type) {
+ case SC_WEIGHTOVER50:
+ case SC_WEIGHTOVER90:
+ case SC_NOCHAT:
+ case SC_PUSH_CART:
+ return true;
+ default:
+ break;
+ }
//This should help status_change_end force disabling the SC in case it has no limit.
sce->val1 = sce->val2 = sce->val3 = sce->val4 = 0;