Fixed Backstap bypassing battle_check_target.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13902 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Inkfish 2009-06-21 01:39:38 +00:00
parent 33e1fbbd66
commit 73b120c83b

View File

@ -5770,7 +5770,14 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr data)
break; 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 ) if( ud->skillid == PR_LEXDIVINA || ud->skillid == MER_LEXDIVINA )
{ {
sc = status_get_sc(target); sc = status_get_sc(target);
@ -5781,13 +5788,6 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr data)
} }
} }
else 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. { // Check target validity.
inf = skill_get_inf(ud->skillid); inf = skill_get_inf(ud->skillid);
inf2 = skill_get_inf2(ud->skillid); inf2 = skill_get_inf2(ud->skillid);