summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 14:53:19 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 14:53:19 +0000
commitb1124e5b6faab4a3223c0b4992f74b260cdd0ea9 (patch)
tree23e7b578abdd32163a8ce34d4a81b89302fe83d0 /src/map/status.c
parentb25a2694b1869230f8f886d195346f1c00bb3ea1 (diff)
downloadhercules-b1124e5b6faab4a3223c0b4992f74b260cdd0ea9.tar.gz
hercules-b1124e5b6faab4a3223c0b4992f74b260cdd0ea9.tar.bz2
hercules-b1124e5b6faab4a3223c0b4992f74b260cdd0ea9.tar.xz
hercules-b1124e5b6faab4a3223c0b4992f74b260cdd0ea9.zip
Fixed holy and shadow elemental scrolls from dispelling on death, bugreport:3534
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15308 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 43205ac34..a1d54a481 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -7543,6 +7543,9 @@ int status_change_clear(struct block_list* bl, int type)
if(type == 0)
switch (i)
{ //Type 0: PC killed -> Place here statuses that do not dispel on death.
+ case SC_ELEMENTALCHANGE://Only when its Holy or Dark that it doesn't dispell on death
+ if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK )
+ break;
case SC_WEIGHT50:
case SC_WEIGHT90:
case SC_EDP:
@@ -7570,6 +7573,7 @@ int status_change_clear(struct block_list* bl, int type)
case SC_FOOD_INT_CASH:
case SC_FOOD_LUK_CASH:
continue;
+
}
status_change_end(bl, (sc_type)i, INVALID_TIMER);