Skip to content

Commit

Permalink
Fix solution for Alba Zoa
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind2009-Louse committed Oct 11, 2023
1 parent f0581a8 commit c5aebae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Game/AI/Decks/AltergeistExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,8 @@ public override IList<ClientCard> OnSelectCard(IList<ClientCard> cards, int min,
// throw all??
return null;
}
return null;

return base.OnSelectCard(cards, min, max, hint, cancelable);
}

public override CardPosition OnSelectPosition(int cardId, IList<CardPosition> positions)
Expand Down
3 changes: 2 additions & 1 deletion Game/AI/Decks/BlueEyesExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public override IList<ClientCard> OnSelectCard(IList<ClientCard> cards, int min,
return Util.CheckSelectCount(result, cards, min, max);
}
Logger.DebugWriteLine("Use default.");
return null;

return base.OnSelectCard(cards, min, max, hint, cancelable);
}

public override IList<ClientCard> OnSelectXyzMaterial(IList<ClientCard> cards, int min, int max)
Expand Down
4 changes: 3 additions & 1 deletion Game/AI/Decks/ZefraExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,9 @@ public override IList<ClientCard> OnSelectCard(IList<ClientCard> cards, int min,
result.AddRange(tRelease);
result.AddRange(nRelease);
}
return Func.CheckSelectCount(Util, result, cards, min, max);
IList<ClientCard> selectResult = Func.CheckSelectCount(Util, result, cards, min, max);
if (selectResult == null) return base.OnSelectCard(cards, min, max, hint, cancelable);
return selectResult;
}
private bool HasInDeck(int id)
{
Expand Down

0 comments on commit c5aebae

Please sign in to comment.