Skip to content

Conversation

@PurpleCrowbar
Copy link
Member

The True Scriptures' (Sheoldred's back face) first ability is:

For each opponent, destroy up to one target creature or planeswalker that player controls.

Previously, this would prompt the controller to select a creature for a player who has left the game on the current turn due to it not excluding those players by default (see #13289). This PR adds the option to use ForEachPlayerTargetsAdjuster with the excludeLeavedPlayers argument (a la Game::getOpponents) which solves this problem.

Tested and verified to work. Can be used to solve similar bugs with other cards that shouldn't include dead players.

@xenohedron
Copy link
Contributor

Pretty sure the excludeLeavedPlayers should be default behavior. Not thrilled about adding a param all over the codebase

private final boolean owner;
private final boolean onlyOpponents; //Makes this a "For Each Opponent" adjuster
private final boolean onlyOpponents; // Makes this a "For Each Opponent" adjuster
private final boolean excludeLeavedPlayers;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No needs for ForEachPlayerTargetsAdjuster, cause it used all the time (false excludeLeavedPlayers for some rare effects only, not targets setup).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants