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:
parent
33e1fbbd66
commit
73b120c83b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user