Fixed holy and shadow elemental scrolls from dispelling on death, bugreport:3534
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15308 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
b1632e804c
commit
f03366dfdf
@ -7543,6 +7543,9 @@ int status_change_clear(struct block_list* bl, int type)
|
|||||||
if(type == 0)
|
if(type == 0)
|
||||||
switch (i)
|
switch (i)
|
||||||
{ //Type 0: PC killed -> Place here statuses that do not dispel on death.
|
{ //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_WEIGHT50:
|
||||||
case SC_WEIGHT90:
|
case SC_WEIGHT90:
|
||||||
case SC_EDP:
|
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_INT_CASH:
|
||||||
case SC_FOOD_LUK_CASH:
|
case SC_FOOD_LUK_CASH:
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status_change_end(bl, (sc_type)i, INVALID_TIMER);
|
status_change_end(bl, (sc_type)i, INVALID_TIMER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user