summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 10:18:06 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 10:18:06 +0000
commit27f31dae1ad1c79ba083a4393c38c68daf474827 (patch)
treec3feeda5cc135ce41c43613f8a279c2313c33670 /src/map/battle.c
parentf922bdfa034cdccd1022c67eb94bcb94ef614e0f (diff)
downloadhercules-27f31dae1ad1c79ba083a4393c38c68daf474827.tar.gz
hercules-27f31dae1ad1c79ba083a4393c38c68daf474827.tar.bz2
hercules-27f31dae1ad1c79ba083a4393c38c68daf474827.tar.xz
hercules-27f31dae1ad1c79ba083a4393c38c68daf474827.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6773 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index bde86cbe5..8e5bba3ff 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3353,6 +3353,9 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
case BL_MOB:
{
TBL_MOB *md = (TBL_MOB*)t_bl;
+ if(md->state.killer)
+ if(md->master_id != s_bl->id)
+ state |= BCT_ENEMY; // If he can attack you, you can attack him.
if (!agit_flag && md->guardian_data && md->guardian_data->guild_id)
return 0; //Disable guardians/emperiums owned by Guilds on non-woe times.
if (md->special_state.ai == 2)