diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/site/Card7_344.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/site/Card7_344.java new file mode 100644 index 000000000..5d7ce8703 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/site/Card7_344.java @@ -0,0 +1,45 @@ +package com.gempukku.lotro.cards.set7.site; + +import com.gempukku.lotro.cards.AbstractSite; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.common.Block; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.actions.RequiredTriggerAction; +import com.gempukku.lotro.logic.effects.AddThreatsEffect; +import com.gempukku.lotro.logic.effects.RemoveThreatsEffect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Return of the King + * Twilight Cost: 6 + * Type: Site + * Site: 5K + * Game Text: When the fellowship moves to this site, add 3 threats. When the fellowship moves from this site, remove + * 3 threats. + */ +public class Card7_344 extends AbstractSite { + public Card7_344() { + super("City Gates", Block.KING, 5, 6, Direction.LEFT); + } + + @Override + public List getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (PlayConditions.movesTo(game, effectResult, self)) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new AddThreatsEffect(game.getGameState().getCurrentPlayerId(), self, 3)); + return Collections.singletonList(action); + } + if (PlayConditions.movesFrom(game, effectResult, self)) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new RemoveThreatsEffect(self, 3)); + return Collections.singletonList(action); + } + return null; + } +}