Fixing typo

This commit is contained in:
Christian 'ketura' McCarty
2022-07-26 22:00:29 -05:00
parent 3ad660aaa7
commit 689cb6c224
8 changed files with 8 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ return Collections.singletonList(new CantReplaceSiteByFPPlayerModifier(self, new
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendCost(
new RemoveTwilightEffect(3));
boolean controlsSite = PlayConditions.controllsSite(game, playerId);
boolean controlsSite = PlayConditions.controlsSite(game, playerId);
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, controlsSite ? 2 : 1, CardType.MINION, Culture.URUK_HAI));
return Collections.singletonList(action);

View File

@@ -41,7 +41,7 @@ public class Card4_011 extends AbstractMinion {
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
if (TriggerConditions.winsSkirmish(game, effectResult, self)
&& PlayConditions.controllsSite(game, playerId)) {
&& PlayConditions.controlsSite(game, playerId)) {
final OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) {

View File

@@ -41,7 +41,7 @@ public class Card4_024 extends AbstractMinion {
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
if (TriggerConditions.winsSkirmish(game, effectResult, self)
&& PlayConditions.controllsSite(game, playerId)) {
&& PlayConditions.controlsSite(game, playerId)) {
final OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) {

View File

@@ -36,7 +36,7 @@ public class Card4_180 extends AbstractMinion {
@Override
public List<? extends ActivateCardAction> getPhaseActionsInPlay(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0)
&& PlayConditions.controllsSite(game, playerId)) {
&& PlayConditions.controlsSite(game, playerId)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) {

View File

@@ -36,7 +36,7 @@ public class Card4_199 extends AbstractMinion {
@Override
public List<? extends ActivateCardAction> getPhaseActionsInPlay(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0)
&& PlayConditions.controllsSite(game, playerId)) {
&& PlayConditions.controlsSite(game, playerId)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) {

View File

@@ -36,7 +36,7 @@ public class Card4_201 extends AbstractMinion {
@Override
public List<? extends ActivateCardAction> getPhaseActionsInPlay(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0)
&& PlayConditions.controllsSite(game, playerId)) {
&& PlayConditions.controlsSite(game, playerId)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) {

View File

@@ -18,7 +18,7 @@ public class ControlsSite implements RequirementProducer {
final PlayerSource playerSource = PlayerResolver.resolvePlayer(player, environment);
return (actionContext) -> {
return PlayConditions.controllsSite(actionContext.getGame(),
return PlayConditions.controlsSite(actionContext.getGame(),
playerSource.getPlayer(actionContext));
};
}

View File

@@ -404,7 +404,7 @@ public class PlayConditions {
return canDiscardFromPlay(source, game, 1, filters);
}
public static boolean controllsSite(LotroGame game, String playerId) {
public static boolean controlsSite(LotroGame game, String playerId) {
return Filters.findFirstActive(game, Filters.siteControlled(playerId)) != null;
}