summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-08 11:18:04 -0300
committershennetsind <ind@henn.et>2013-07-08 11:18:04 -0300
commit4abfdc61a3031db5701613807bcd4ecee4434a00 (patch)
treee3b7b26410202e32d1398ce6c7e89d7a5119dcf3 /src/map/unit.c
parent939d15818b6f17913a12175e197ac7aea1e2e05d (diff)
parent713bc4da082e8b240ca6e0d9551c21c2931eece5 (diff)
downloadhercules-4abfdc61a3031db5701613807bcd4ecee4434a00.tar.gz
hercules-4abfdc61a3031db5701613807bcd4ecee4434a00.tar.bz2
hercules-4abfdc61a3031db5701613807bcd4ecee4434a00.tar.xz
hercules-4abfdc61a3031db5701613807bcd4ecee4434a00.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 3e72cd793..72e4b136e 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1442,6 +1442,10 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, ui
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
return 0;
}
+ if( (skill_id >= SC_MANHOLE && skill_id <= SC_FEINTBOMB) && iMap->getcell(src->m, skill_x, skill_y, CELL_CHKMAELSTROM) ) {
+ clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
+ return 0;
+ }
}
if (!iStatus->check_skilluse(src, NULL, skill_id, 0))