From 813908c6d116b6afe92cf128cdbb84131860f2c6 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 8 Dec 2013 14:07:33 -0200 Subject: Fixed cell basilica which was broken 5 years ago in 13106, special Thanks to karazu, Angelmelody and kyeme. Signed-off-by: shennetsind --- src/map/battle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/battle.c') 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 ) -- cgit v1.2.3-60-g2f50