From c9d4051012392245ec08e1ee25395bd22555e638 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 14 Nov 2006 14:21:47 +0000 Subject: - Characters with Karma may fight amongst them anywhere. - Added mapflags partylock and guildlock, which lock the state of the parties/guilds on said maps. partylock blocks user party requests to create/invite/leave/kick, while guildlock blocks user guild requests to create/invite/leave/expel/make alliance/make opposition/delete alliance/delete opposition/break git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9216 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/battle.c') 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) -- cgit v1.2.3-70-g09d2