Add NixOS and Go
This commit is contained in:
@@ -507,6 +507,13 @@ namespace KernelPanic.Editor
|
||||
return false;
|
||||
}
|
||||
if (!_combat.CanSurrenderRun) return false;
|
||||
if (_combat.PendingGoroutineCard != null)
|
||||
{
|
||||
var work = _combat.Go.Active.FirstOrDefault(g => _combat.IsEligibleGoSelection(g, _combat.PendingGoroutineCard));
|
||||
if (work != null) _combat.SelectGoroutine(work.Id);
|
||||
else _combat.CancelGoroutineSelection();
|
||||
Progress(); return false;
|
||||
}
|
||||
int targetIndex = FindTarget();
|
||||
if (targetIndex >= 0) _combat.SelectEnemy(targetIndex);
|
||||
CardInstance chosen = null;
|
||||
@@ -515,6 +522,7 @@ namespace KernelPanic.Editor
|
||||
foreach (var card in _combat.HandController.Cards)
|
||||
{
|
||||
if (card.Definition == null || card.Definition.IsToken || card.IsBroken || card.IsLocked
|
||||
|| _combat.GoPlayBlockReason(card) != null
|
||||
|| _combat.GetDisplayedPlayCost(card) > _combat.PlayerState.Cycles) continue;
|
||||
var preview = CardPreviewService.Build(_combat, card, target);
|
||||
double damage = (preview.MinimumDamage + (double)preview.MaximumDamage) / 2;
|
||||
@@ -524,6 +532,7 @@ namespace KernelPanic.Editor
|
||||
chosen = card;
|
||||
}
|
||||
if (chosen != null && _combat.CardsPlayedThisRound < 64 && _combat.PlayCard(chosen)) { Progress(); return false; }
|
||||
if (_combat.PendingGoroutineCard != null) { Progress(); return false; }
|
||||
if (_report.options.prefetch && _combat.CardsPlayedThisRound < 64 && _combat.TryPrefetch())
|
||||
{
|
||||
_current.prefetches++;
|
||||
|
||||
Reference in New Issue
Block a user