Skip to content

Instantly share code, notes, and snippets.

@MatthewBlanchard
Created July 28, 2018 21:48
Show Gist options
  • Save MatthewBlanchard/aef4d4057aeb8fbb493f56d795573cd7 to your computer and use it in GitHub Desktop.
Save MatthewBlanchard/aef4d4057aeb8fbb493f56d795573cd7 to your computer and use it in GitHub Desktop.
if (!CanShootOutsideArc)
{
ShotInfo shotInfo = new ShotInfo(Host, targetShip, this);
range = shotInfo.Range;
if (IsBullseyeArcOnly)
{
ShotInfoArc bullseyeShotInfo = new ShotInfoArc(Host, targetShip, Host.ArcInfo.GetArc<Arcs.ArcBullseye>());
if (!bullseyeShotInfo.InArc)
return false;
}
if (!shotInfo.IsShotAvailable) return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment