void IonCannonFrigateAttackPassive(Ship *ship,Ship *target,bool rotate) { if ((rotate) & ((bool)((ShipStaticInfo *)(ship->staticinfo))->rotateToRetaliate)) { attackPassiveRotate(ship,target); } else { attackPassive(ship,target); } }
void DroneAttackPassive(Ship *ship,Ship *target,bool rotate) { DroneSpec *spec = (DroneSpec *)ship->ShipSpecifics; if (spec->droneState != DRONE_STATE_LAUNCHED) { return; // only allow fully launched drones to shoot } if ((rotate) & ((bool)((ShipStaticInfo *)(ship->staticinfo))->rotateToRetaliate)) { attackPassiveRotate(ship,target); } else { attackPassive(ship,target); } }