Explorar o código

Fixed bugreport:5534 (follow up to r16554) where GDB wasn't allowing for 1 HP damage, spellbreaker and eske when in INVINCIBLE state.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16675 54d463be-8e91-2dee-dedb-b68131a5f0ec
cookiecrumbs %!s(int64=12) %!d(string=hai) anos
pai
achega
b18005b227
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/map/status.c

+ 2 - 1
src/map/status.c

@@ -1675,7 +1675,8 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
 	tsc = status_get_sc(target);
 	
 	if(tsc && tsc->count) {
-		if( tsc->data[SC_INVINCIBLE] )
+		/* attacks in invincible are capped to 1 damage and handled in batte.c; allow spell break and eske for sealed shrine GDB when in INVINCIBLE state. */
+		if( tsc->data[SC_INVINCIBLE] && !tsc->data[SC_INVINCIBLEOFF] && skill_num && !(skill_num&(SA_SPELLBREAKER|SL_SKE)) )
 			return 0;
 		if(!skill_num && tsc->data[SC_TRICKDEAD])
 			return 0;