[PH17] Implement Inzerva, Master of Insights (#11774)

* Remove superfluous code from fateseal effect
This commit is contained in:
PurpleCrowbar 2024-03-08 00:02:52 +00:00 committed by GitHub
parent 86154a7317
commit e5759bbd9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 182 additions and 8 deletions

View file

@ -985,8 +985,11 @@ public abstract class PlayerImpl implements Player, Serializable {
}
} else {
// user defined order
UUID cardOwner = cards.getRandom(game).getOwnerId();
TargetCard target = new TargetCard(Zone.ALL,
new FilterCard("card ORDER to put on the BOTTOM of your library (last one chosen will be bottommost)"));
new FilterCard("card ORDER to put on the BOTTOM of " +
(cardOwner.equals(playerId) ? "your" : game.getPlayer(cardOwner).getName() + "'s") +
" library (last one chosen will be bottommost)"));
target.setRequired(true);
while (cards.size() > 1 && this.canRespond()
&& this.choose(Outcome.Neutral, cards, target, source, game)) {
@ -1078,8 +1081,11 @@ public abstract class PlayerImpl implements Player, Serializable {
}
} else {
// user defined order
UUID cardOwner = cards.getRandom(game).getOwnerId();
TargetCard target = new TargetCard(Zone.ALL,
new FilterCard("card ORDER to put on the TOP of your library (last one chosen will be topmost)"));
new FilterCard("card ORDER to put on the TOP of " +
(cardOwner.equals(playerId) ? "your" : game.getPlayer(cardOwner).getName() + "'s") +
" library (last one chosen will be topmost)"));
target.setRequired(true);
while (cards.size() > 1
&& this.canRespond()