Follow up to r16647, fixed bugreport:5534. Moved the fix from skill.c to status.c.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16654 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
c4bff179e9
commit
3353c38a8a
@ -5170,15 +5170,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
|
|||||||
case NPC_MAGICMIRROR:
|
case NPC_MAGICMIRROR:
|
||||||
case ST_PRESERVE:
|
case ST_PRESERVE:
|
||||||
case NPC_INVINCIBLE:
|
case NPC_INVINCIBLE:
|
||||||
/* if invincible, end the SC for off state */
|
|
||||||
if(skillid == NPC_INVINCIBLE)
|
|
||||||
status_change_end(bl, SC_INVINCIBLEOFF, INVALID_TIMER);
|
|
||||||
|
|
||||||
/* if invincible off, end the SC for on state */
|
|
||||||
case NPC_INVINCIBLEOFF:
|
case NPC_INVINCIBLEOFF:
|
||||||
if(skillid == NPC_INVINCIBLEOFF)
|
|
||||||
status_change_end(bl, SC_INVINCIBLE, INVALID_TIMER);
|
|
||||||
|
|
||||||
case RK_DEATHBOUND:
|
case RK_DEATHBOUND:
|
||||||
case AB_RENOVATIO:
|
case AB_RENOVATIO:
|
||||||
case AB_EXPIATIO:
|
case AB_EXPIATIO:
|
||||||
|
@ -6824,6 +6824,12 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
|
|||||||
if( type != SC_GT_CHANGE )
|
if( type != SC_GT_CHANGE )
|
||||||
status_change_end(bl, SC_GT_CHANGE, INVALID_TIMER);
|
status_change_end(bl, SC_GT_CHANGE, INVALID_TIMER);
|
||||||
break;
|
break;
|
||||||
|
case SC_INVINCIBLE:
|
||||||
|
status_change_end(bl, SC_INVINCIBLEOFF, INVALID_TIMER);
|
||||||
|
break;
|
||||||
|
case SC_INVINCIBLEOFF:
|
||||||
|
status_change_end(bl, SC_INVINCIBLE, INVALID_TIMER);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check for overlapping fails
|
//Check for overlapping fails
|
||||||
|
Loading…
x
Reference in New Issue
Block a user