summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-21 01:39:38 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-21 01:39:38 +0000
commit744e75b4c3eec25135993ef3e58a4c6cc7124787 (patch)
treebf167920d268fee599e9bd5be4211ae059ed0cd8 /src/map
parentef7452b497d24f6f475d214f1244ab589b304c7c (diff)
downloadhercules-744e75b4c3eec25135993ef3e58a4c6cc7124787.tar.gz
hercules-744e75b4c3eec25135993ef3e58a4c6cc7124787.tar.bz2
hercules-744e75b4c3eec25135993ef3e58a4c6cc7124787.tar.xz
hercules-744e75b4c3eec25135993ef3e58a4c6cc7124787.zip
Fixed Backstap bypassing battle_check_target.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13902 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 47ec44abc..27bf689ac 100644
--- a/src/map/skill.c
+++ b/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);