private void RemoveCondition() { if (SufferedShip != null) { Messages.ShowInfo("The \"Rattled\" condition has been removed from " + SufferedShip.PilotInfo.PilotName); SufferedShip.Tokens.RemoveCondition(AssignedCondition); SufferedShip = null; AssignedCondition = null; } }
private void CheckAbility(GenericShip ship) { if (Combat.ShotInfo.InArcByType(ArcType.SingleTurret)) { RemoveCondition(); Messages.ShowInfo("The \"Rattled\" condition has been assigned to " + Combat.Defender.PilotInfo.PilotName); AssignedCondition = new RattledCondition(Combat.Defender, HostShip); SufferedShip = Combat.Defender; SufferedShip.Tokens.AssignCondition(AssignedCondition); } }