Fixing typo
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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));
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user