version 1.81 | | version 1.82 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.81 2005/07/17 04:19:49 qal21 Exp $"; | | * "$Id: monster.c,v 1.82 2005/07/28 07:23:19 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
npc->enemy = NULL; | | npc->enemy = NULL; |
| | |
else if (QUERY_FLAG(npc, FLAG_FRIENDLY) && ( | | else if (QUERY_FLAG(npc, FLAG_FRIENDLY) && ( |
(QUERY_FLAG(npc->enemy, FLAG_FRIENDLY) && !( | | (QUERY_FLAG(npc->enemy, FLAG_FRIENDLY) && !(should_arena_attack(npc, npc->owner, npc->enemy))) || |
(npc->owner != npc->enemy->owner) && | | ((npc->enemy->type == PLAYER) && !(should_arena_attack(npc, npc->owner, npc->enemy))) |
op_on_battleground(npc, NULL, NULL) && | | |
op_on_battleground(npc->owner, NULL, NULL) && | | |
op_on_battleground(npc->enemy, NULL, NULL) && | | |
(npc->owner->contr->petmode == pet_arena) && !( | | |
(npc->enemy->owner->contr->party_number == | | |
npc->owner->contr->party_number) && | | |
(npc->owner->contr->party_number > 0)))) || | | |
((npc->enemy->type == PLAYER) && !( | | |
op_on_battleground(npc, NULL, NULL) && | | |
op_on_battleground(npc->owner, NULL, NULL) && | | |
op_on_battleground(npc->enemy, NULL, NULL) && | | |
(npc->owner->contr->petmode == pet_arena) && !( | | |
(npc->enemy->contr->party_number == | | |
npc->owner->contr->party_number) && | | |
(npc->owner->contr->party_number > 0)))) | | |
|| npc->enemy == npc->owner)) | | || npc->enemy == npc->owner)) |
npc->enemy = NULL; | | npc->enemy = NULL; |
| | |