summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-12-08 14:07:33 -0200
committershennetsind <ind@henn.et>2013-12-08 14:07:33 -0200
commit813908c6d116b6afe92cf128cdbb84131860f2c6 (patch)
tree7b56e0712adfe1a4d8b93b6acfd83c8b6dce7d8a /src/map/battle.c
parent53b2d771beebbb358bf88cad47317965876eb0b4 (diff)
downloadhercules-813908c6d116b6afe92cf128cdbb84131860f2c6.tar.gz
hercules-813908c6d116b6afe92cf128cdbb84131860f2c6.tar.bz2
hercules-813908c6d116b6afe92cf128cdbb84131860f2c6.tar.xz
hercules-813908c6d116b6afe92cf128cdbb84131860f2c6.zip
Fixed cell basilica
which was broken 5 years ago in 13106, special Thanks to karazu, Angelmelody and kyeme. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 648e75bb3..b3e7e6dc2 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -5815,6 +5815,10 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
m = target->m;
+ if (flag&BCT_ENEMY && ( map->getcell(m,src->x,src->y,CELL_CHKBASILICA) || map->getcell(m,target->x,target->y,CELL_CHKBASILICA) ) ) {
+ return -1;
+ }
+
//t_bl/s_bl hold the 'master' of the attack, while src/target are the actual
//objects involved.
if( (t_bl = battle->get_master(target)) == NULL )