diff options
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 437f95253..9e5d05623 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3020,6 +3020,9 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f return -1; } + if (flag&BCT_ENEMY && map_getcell(m,src->x,src->y,CELL_CHKNODAMAGE) || map_getcell(m,target->x,target->y,CELL_CHKNODAMAGE)) + return -1; // [NoDamage] + //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) |