Fix 'chosen' spelling (#9021)

This commit is contained in:
DeepCrimson 2022-05-27 20:45:07 -07:00 committed by GitHub
parent 74a16d179f
commit 9084180937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 103 additions and 103 deletions

View file

@ -20,7 +20,7 @@ public class ModeChoiceSourceCondition implements Condition {
@Override
public boolean apply(Game game, Ability source) {
String choosenMode = (String) game.getState().getValue(source.getSourceId() + "_modeChoice");
return choosenMode != null && choosenMode.equals(mode);
String chosenMode = (String) game.getState().getValue(source.getSourceId() + "_modeChoice");
return chosenMode != null && chosenMode.equals(mode);
}
}

View file

@ -44,7 +44,7 @@ public class GainProtectionFromColorSourceEffect extends GainAbilitySourceEffect
ChoiceColor colorChoice = new ChoiceColor(true);
colorChoice.setMessage("Choose color for protection ability");
if (controller.choose(outcome, colorChoice, game)) {
game.informPlayers("Choosen color: " + colorChoice.getColor());
game.informPlayers("Chosen color: " + colorChoice.getColor());
protectionFilter.add(new ColorPredicate(colorChoice.getColor()));
protectionFilter.setMessage(colorChoice.getChoice());
((ProtectionAbility) ability).setFilter(protectionFilter);

View file

@ -102,7 +102,7 @@ public class DiscardEachPlayerEffect extends OneShotEffect {
if (randomDiscard) {
return true;
}
// discard all choosen cards
// discard all chosen cards
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
Player player = game.getPlayer(playerId);
if (player == null) {

View file

@ -2043,7 +2043,7 @@ public abstract class GameImpl implements Game {
/**
* Sets the waiting triggered abilities (if there are any) to the stack in
* the choosen order by player
* the chosen order by player
*
* @return
*/

View file

@ -130,7 +130,7 @@ public interface Target extends Serializable {
Target copy();
// some targets are choosen from players that are not the controller of the ability (e.g. Pandemonium)
// some targets are chosen from players that are not the controller of the ability (e.g. Pandemonium)
void setTargetController(UUID playerId);
UUID getTargetController();

View file

@ -44,7 +44,7 @@ public abstract class TargetPermanentOrPlayerAmount extends TargetAmount {
@Override
public boolean canTarget(UUID objectId, Game game) {
// max targets limit reached (only selected can be choosen again)
// max targets limit reached (only selected can be chosen again)
if (getMaxNumberOfTargets() > 0 && getTargets().size() >= getMaxNumberOfTargets()) {
return getTargets().contains(objectId);
}
@ -60,7 +60,7 @@ public abstract class TargetPermanentOrPlayerAmount extends TargetAmount {
@Override
public boolean canTarget(UUID objectId, Ability source, Game game) {
// max targets limit reached (only selected can be choosen again)
// max targets limit reached (only selected can be chosen again)
if (getMaxNumberOfTargets() > 0 && getTargets().size() >= getMaxNumberOfTargets()) {
return getTargets().contains(objectId);
}
@ -147,7 +147,7 @@ public abstract class TargetPermanentOrPlayerAmount extends TargetAmount {
public Set<UUID> possibleTargets(UUID sourceControllerId, Ability source, Game game) {
Set<UUID> possibleTargets = new HashSet<>();
// max targets limit reached (only selected can be choosen again)
// max targets limit reached (only selected can be chosen again)
if (getMaxNumberOfTargets() > 0 && getTargets().size() >= getMaxNumberOfTargets()) {
possibleTargets.addAll(getTargets());
return possibleTargets;
@ -181,7 +181,7 @@ public abstract class TargetPermanentOrPlayerAmount extends TargetAmount {
public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {
Set<UUID> possibleTargets = new HashSet<>();
// max targets limit reached (only selected can be choosen again)
// max targets limit reached (only selected can be chosen again)
if (getMaxNumberOfTargets() > 0 && getTargets().size() >= getMaxNumberOfTargets()) {
possibleTargets.addAll(getTargets());
return possibleTargets;