Originally posted by [b]Pinky[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4170
just wanted to ask, while i report this...
did you guys officially remove setcell basilica? since it's still in the docs.txt and it's a helpful feature.
in any case... it's not working, I'm pretty much rusty and i dont know what has been going on lately.
battle.c :
CODE
int battle_check_target( struct block_list *src, struct block_list *target,int flag)
{
int m,state = 0; //Initial state none
int strip_enemy = 1; //Flag which marks whether to remove the BCT_ENEMY status if it's also friend/ally.
struct block_list *s_bl = src, *t_bl = target;
nullpo_retr(0, src);
nullpo_retr(0, target);
m = target->m;
//t_bl/s_bl hold the 'master' of the attack, while src/target are the actual
//objects involved.
replace with:
CODE
int battle_check_target( struct block_list *src, struct block_list *target,int flag)
{
int m,state = 0; //Initial state none
int strip_enemy = 1; //Flag which marks whether to remove the BCT_ENEMY status if it's also friend/ally.
struct block_list *s_bl = src, *t_bl = target;
nullpo_retr(0, src);
nullpo_retr(0, target);
m = target->m;
if (flag&BCT_ENEMY && !(status_get_mode(src)&MD_BOSS))
{ //No offensive stuff while in Basilica.
if (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.
just incase anyone wants to fix it