"City Gates"

This commit is contained in:
marcins78@gmail.com
2011-11-10 22:50:08 +00:00
parent c50947eb02
commit f9324bb3c0

View File

@@ -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<RequiredTriggerAction> 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;
}
}