diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 12 |
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; |