summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-18 06:12:42 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-18 06:12:42 +0000
commited96cad9ab04308904437680b26332825e4c73c1 (patch)
treec27ce1a1f8ee13c6fce361e5289b701d0312b281 /src/map/unit.c
parenta5b998797c29b27f144882abe40def2c8fc49e50 (diff)
downloadhercules-ed96cad9ab04308904437680b26332825e4c73c1.tar.gz
hercules-ed96cad9ab04308904437680b26332825e4c73c1.tar.bz2
hercules-ed96cad9ab04308904437680b26332825e4c73c1.tar.xz
hercules-ed96cad9ab04308904437680b26332825e4c73c1.zip
Fixed White Imprison not going off, bugreport:5249
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15714 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 9c6b8d760..36a57a59d 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1119,6 +1119,13 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh
return 0;
}
break;
+ case WL_WHITEIMPRISON:
+ if( battle_check_target(src,target,BCT_SELF|BCT_ENEMY) < 0 ) {
+ clif_skill_fail(sd,skill_num,0xb,0);
+ return 0;
+ }
+ break;
+
}
if (!skill_check_condition_castbegin(sd, skill_num, skill_lv))
return 0;