summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-06 20:28:45 -0200
committershennetsind <ind@henn.et>2013-11-06 20:28:45 -0200
commit665f1306a130d4b8c359972bf4e58ef9d3bd9cd8 (patch)
treede3f9d41fc8a9330675a412791b1151e34cadaf8 /src/map/script.c
parent6dcc3873037631aac15f6a87337c49e18b4cd075 (diff)
downloadhercules-665f1306a130d4b8c359972bf4e58ef9d3bd9cd8.tar.gz
hercules-665f1306a130d4b8c359972bf4e58ef9d3bd9cd8.tar.bz2
hercules-665f1306a130d4b8c359972bf4e58ef9d3bd9cd8.tar.xz
hercules-665f1306a130d4b8c359972bf4e58ef9d3bd9cd8.zip
Fixed Bug 7799
SC_MOONSTAR, SC_SUPER_STAR are no longer removeable by sc_end all, and sc clear. Modified sc_config.txt, added a new flag (0x80/128) for such cases. http://hercules.ws/board/tracker/issue-7799-sc-moonstar/ Special Thanks to kyeme. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 8fd7f425c..a944447e2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9425,15 +9425,8 @@ BUILDIN(sc_end) {
if (!sce)
return true;
- switch (type) {
- case SC_WEIGHTOVER50:
- case SC_WEIGHTOVER90:
- case SC_NOCHAT:
- case SC_PUSH_CART:
- return true;
- default:
- break;
- }
+ if( status->get_sc_type(type)&SC_NO_CLEAR )
+ return true;
//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;