diff --git a/src/battle/ai.c b/src/battle/ai.c index 3d6fc9c..218f20b 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -396,7 +396,12 @@ static int selectWeaponForTarget(Entity *e) if (e->flags & EF_NO_KILL) { - return selectWeapon(BT_LASER) || selectWeapon(BT_MAG); + if (!(e->flags & EF_DISABLED)) + { + return selectWeapon(BT_LASER) || selectWeapon(BT_MAG); + } + + return 0; } }