From 90be2a7937e7552a72d1e7eb632e6bc2d01443ef Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Fri, 4 May 2018 15:11:44 +0800 Subject: Add setpcblock & checkpcblock script commands thanks to @MishimaHaruna for the updated syntax --- src/map/battle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index f257f3c84..6a961afeb 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6649,7 +6649,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f if (t_bl == s_bl) break; - if( sd->state.monster_ignore && flag&BCT_ENEMY ) + if (sd->block_action.immune && flag&BCT_ENEMY) return 0; // Global immunity only to Attacks if (sd->status.karma && s_bl->type == BL_PC && BL_UCCAST(BL_PC, s_bl)->status.karma) state |= BCT_ENEMY; // Characters with bad karma may fight amongst them -- cgit v1.2.3-60-g2f50