public void onZeroNrj(ItemController item) { List<int> targetsId = map.AtWhoAIsShootingAt (item.GetId()); ItemController targetController; foreach (int targetId in targetsId) { targetController = itemsCollection.GetItemController(targetId); if (targetController.getOwner() == item.getOwner()) { linesCollection.GetLineControllerBetween (item.GetId (), targetId).Deactivate(); } else { MakeAShootAtB(targetController, item); } } map.AstopsShooting (item.GetId ()); item.SetOwner (0); }