From 4f59f46d78c8ca16c0acce0e5e196503aacc17c0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 27 Nov 2007 09:21:18 +0000 Subject: - Corrected the online_data_cleanup routine setting offline characters that are still connected to the char-server. - Added a check in script command sc_end to properly end infinte endure - ASC_BREAKER no longer triggers status effect cards. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11817 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 4198fdd55..3ee1f04c1 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8122,6 +8122,12 @@ BUILDIN_FUNC(sc_end) if( bl ) { + if( type == SC_ENDURE ) + { //Required to terminate properly infinite endure. + struct status_change *sc = status_get_sc(bl); + struct status_change_entry *sce = sc?sc->data[type]:NULL; + if (sce) sce->val4 = 0; + } if( type >= 0 ) status_change_end(bl, type, INVALID_TIMER); else -- cgit v1.2.3-70-g09d2