mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Fix 'chosen' spelling (#9021)
This commit is contained in:
parent
74a16d179f
commit
9084180937
26 changed files with 103 additions and 103 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue