From b307bb07a41dd6189bb4133e5095751b5547ad3c Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 11 Jul 2006 20:55:54 +0000 Subject: - Made @monsterignore be an universal ignore. Means you cannot be targetted as an enemy by anything. Also added alias "@battleignore" which does the same as monsterignore. - Fixed magic power setting your min matk as max-matk. - Modified the packets involved in @fakename in hopes it'll refresh correctly on nearby clients now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7620 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index 0b30f4f1d..5b5889284 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3028,8 +3028,8 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f TBL_PC *sd = (TBL_PC*)t_bl; if (sd->invincible_timer != -1 || pc_isinvisible(sd)) return -1; //Cannot be targeted yet. - if (sd->state.monster_ignore && src->type == BL_MOB) - return 0; //option to have monsters ignore GMs [Valaris] + if (sd->state.monster_ignore && t_bl != s_bl && flag&BCT_ENEMY) + return 0; //Global inmunity to attacks. if (sd->special_state.killable && t_bl != s_bl) { state |= BCT_ENEMY; //Universal Victim -- cgit v1.2.3-60-g2f50