Fixng triggers vs actions.
This commit is contained in:
@@ -41,7 +41,7 @@ public class Card1_023 extends AbstractLotroCardBlueprint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.keyword(Keyword.DWARF))) {
|
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.keyword(Keyword.DWARF))) {
|
||||||
final PlayEventAction action = new PlayEventAction(self);
|
final PlayEventAction action = new PlayEventAction(self);
|
||||||
action.addEffect(new PlayoutDecisionEffect(
|
action.addEffect(new PlayoutDecisionEffect(
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public class Card1_025 extends AbstractLotroCardBlueprint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (self.getZone() == Zone.HAND && PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.keyword(Keyword.DWARF))) {
|
if (self.getZone() == Zone.HAND && PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.keyword(Keyword.DWARF))) {
|
||||||
SkirmishResult skirmishResult = (SkirmishResult) effectResult;
|
SkirmishResult skirmishResult = (SkirmishResult) effectResult;
|
||||||
PlayEventAction action = new PlayEventAction(self);
|
PlayEventAction action = new PlayEventAction(self);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class Card1_122 extends AbstractLotroCardBlueprint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (PlayConditions.played(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.and(Filters.keyword(Keyword.URUK_HAI), Filters.owner(playerId)))
|
if (PlayConditions.played(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.and(Filters.keyword(Keyword.URUK_HAI), Filters.owner(playerId)))
|
||||||
&& PlayConditions.canPlayShadowCardDuringPhase(game, null, self)) {
|
&& PlayConditions.canPlayShadowCardDuringPhase(game, null, self)) {
|
||||||
final PlayEventAction action = new PlayEventAction(self);
|
final PlayEventAction action = new PlayEventAction(self);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class Card1_144 extends AbstractLotroCardBlueprint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.and(Filters.keyword(Keyword.URUK_HAI), Filters.owner(playerId)))
|
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.and(Filters.keyword(Keyword.URUK_HAI), Filters.owner(playerId)))
|
||||||
&& game.getGameState().getTwilightPool() >= 1) {
|
&& game.getGameState().getTwilightPool() >= 1) {
|
||||||
SkirmishResult skirmishResult = ((SkirmishResult) effectResult);
|
SkirmishResult skirmishResult = ((SkirmishResult) effectResult);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class Card1_154 extends AbstractMinion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (PlayConditions.played(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.sameCard(self))) {
|
if (PlayConditions.played(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.sameCard(self))) {
|
||||||
CostToEffectAction action = new CostToEffectAction(self, null, "The Free Peoples player discard the top card of his draw deck.");
|
CostToEffectAction action = new CostToEffectAction(self, null, "The Free Peoples player discard the top card of his draw deck.");
|
||||||
action.addEffect(new DiscardTopCardFromDeckEffect(game.getGameState().getCurrentPlayerId()));
|
action.addEffect(new DiscardTopCardFromDeckEffect(game.getGameState().getCurrentPlayerId()));
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class Card1_155 extends AbstractMinion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getOptionalAfterTriggers(final String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterActions(final String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (effectResult.getType() == EffectResult.Type.PUT_ON_THE_ONE_RING
|
if (effectResult.getType() == EffectResult.Type.PUT_ON_THE_ONE_RING
|
||||||
&& PlayConditions.canExert(game.getGameState(), game.getModifiersQuerying(), self)) {
|
&& PlayConditions.canExert(game.getGameState(), game.getModifiersQuerying(), self)) {
|
||||||
final CostToEffectAction action = new CostToEffectAction(self, Keyword.RESPONSE, "Exert this minion. Discard a card from the top of your draw deck for each ISENGARD minion you spot. Add a burden for each Shadow card discarded in this way.");
|
final CostToEffectAction action = new CostToEffectAction(self, Keyword.RESPONSE, "Exert this minion. Discard a card from the top of your draw deck for each ISENGARD minion you spot. Add a burden for each Shadow card discarded in this way.");
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class Card1_159 extends AbstractLotroCardBlueprint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||||
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.and(Filters.owner(playerId), Filters.keyword(Keyword.URUK_HAI)))
|
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.and(Filters.owner(playerId), Filters.keyword(Keyword.URUK_HAI)))
|
||||||
&& game.getGameState().getTwilightPool() >= 3) {
|
&& game.getGameState().getTwilightPool() >= 3) {
|
||||||
SkirmishResult skirmishResult = ((SkirmishResult) effectResult);
|
SkirmishResult skirmishResult = ((SkirmishResult) effectResult);
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class Card1_362 extends AbstractSite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<? extends Action> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (effectResult.getType() == EffectResult.Type.WHEN_MOVE_TO
|
if (effectResult.getType() == EffectResult.Type.WHEN_MOVE_TO
|
||||||
&& game.getGameState().getCurrentSite() == self) {
|
&& game.getGameState().getCurrentSite() == self) {
|
||||||
List<Action> actions = new LinkedList<Action>();
|
List<Action> actions = new LinkedList<Action>();
|
||||||
|
|||||||
Reference in New Issue
Block a user