Ver Fonte

Fixed Backstap bypassing battle_check_target.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13902 54d463be-8e91-2dee-dedb-b68131a5f0ec
Inkfish há 16 anos atrás
pai
commit
73b120c83b
1 ficheiros alterados com 8 adições e 8 exclusões
  1. 8 8
      src/map/skill.c

+ 8 - 8
src/map/skill.c

@@ -5770,7 +5770,14 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr data)
 				break;
 			}
 		}
-		else
+
+		if( ud->skillid == PR_TURNUNDEAD )
+		{
+			struct status_data *tstatus = status_get_status_data(target);
+			if( !battle_check_undead(tstatus->race, tstatus->def_ele) )
+				break;
+		}
+
 		if( ud->skillid == PR_LEXDIVINA || ud->skillid == MER_LEXDIVINA )
 		{
 			sc = status_get_sc(target);
@@ -5781,13 +5788,6 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr data)
 			}
 		}
 		else
-		if( ud->skillid == PR_TURNUNDEAD )
-		{
-			struct status_data *tstatus = status_get_status_data(target);
-			if( !battle_check_undead(tstatus->race, tstatus->def_ele) )
-				break;
-		}
-		else
 		{ // Check target validity.
 			inf = skill_get_inf(ud->skillid);
 			inf2 = skill_get_inf2(ud->skillid);