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 0a7dee67c..ffc39c595 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3230,6 +3230,9 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f case BL_PC: { TBL_PC *sd = (TBL_PC*)t_bl; + if (sd->status.karma && t_bl != s_bl && s_bl->type == BL_PC && + ((TBL_PC*)s_bl)->status.karma) + state |= BCT_ENEMY; //Characters with bad karma may fight amongst them. if (sd->state.monster_ignore && t_bl != s_bl && flag&BCT_ENEMY) return 0; //Global inmunity to attacks. if (sd->state.killable && t_bl != s_bl) |