|
@@ -3124,11 +3124,11 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
|
|
|
case BL_MOB:
|
|
|
{
|
|
|
TBL_MOB*md = (TBL_MOB*)s_bl;
|
|
|
- if(md->state.killer) // Is on a rampage too :D
|
|
|
- state |= BCT_ENEMY;
|
|
|
if (!agit_flag && md->guardian_data && md->guardian_data->guild_id)
|
|
|
return 0; //Disable guardians/emperium owned by Guilds on non-woe times.
|
|
|
- if (!md->special_state.ai) { //Normal mobs.
|
|
|
+ if(md->state.killer) // Is on a rampage too :D
|
|
|
+ state |= BCT_ENEMY;
|
|
|
+ else if (!md->special_state.ai) { //Normal mobs.
|
|
|
if (t_bl->type == BL_MOB && !((TBL_MOB*)t_bl)->special_state.ai)
|
|
|
state |= BCT_PARTY; //Normal mobs with no ai are friends.
|
|
|
else
|