summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-12-15 00:09:38 +0200
committerHaru <haru@dotalux.com>2019-12-15 15:41:04 +0100
commit5e07162a2968cdbcb7109b32cebcac220f6b033c (patch)
treef7f4f511f9fb983e530514454d61d69e8bb6376c /src/map
parent75ae0182f850e213d50832c979312aa560152628 (diff)
downloadhercules-5e07162a2968cdbcb7109b32cebcac220f6b033c.tar.gz
hercules-5e07162a2968cdbcb7109b32cebcac220f6b033c.tar.bz2
hercules-5e07162a2968cdbcb7109b32cebcac220f6b033c.tar.xz
hercules-5e07162a2968cdbcb7109b32cebcac220f6b033c.zip
Fix SC_LEXAETERNA not getting removed when player receive SC_STONE or SC_FREEZE
Closes #2559 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com> Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 4821f18d5..98cb7d4e0 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -7395,6 +7395,9 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl
//Undead are immune to Freeze/Stone
if (undead_flag && !(flag&SCFLAG_NOAVOID))
return 0;
+ // SC_LEXAETERNA should be removed when applying SC_STONE or SC_FREEZE
+ if (sc->data[SC_LEXAETERNA] != NULL)
+ status_change_end(bl, SC_LEXAETERNA, INVALID_TIMER);
FALLTHROUGH
case SC_SLEEP:
case SC_STUN: