Explorar el Código

- Fixed a bug. Warp portal cannot be casted on dead players.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13104 54d463be-8e91-2dee-dedb-b68131a5f0ec
zephyrus hace 16 años
padre
commit
75acf439cf
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      src/map/skill.c

+ 5 - 4
src/map/skill.c

@@ -1858,14 +1858,15 @@ static int skill_check_unit_range2_sub (struct block_list *bl, va_list ap)
 	if(bl->prev == NULL)
 		return 0;
 
-	if(status_isdead(bl))
+	skillid = va_arg(ap,int);
+
+	if( status_isdead(bl) && skillid != AL_WARP )
 		return 0;
 
-	skillid = va_arg(ap,int);
-	if (skillid==HP_BASILICA && bl->type==BL_PC)
+	if( skillid == HP_BASILICA && bl->type == BL_PC )
 		return 0;
 
-	if (skillid==AM_DEMONSTRATION && bl->type==BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM)
+	if( skillid == AM_DEMONSTRATION && bl->type == BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM )
 		return 0; //Allow casting Bomb/Demonstration Right under emperium [Skotlex]
 	return 1;
 }