diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-26 10:18:06 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-26 10:18:06 +0000 |
commit | 27f31dae1ad1c79ba083a4393c38c68daf474827 (patch) | |
tree | c3feeda5cc135ce41c43613f8a279c2313c33670 /src/map/battle.c | |
parent | f922bdfa034cdccd1022c67eb94bcb94ef614e0f (diff) | |
download | hercules-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.c | 3 |
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)
|