"Morannon"
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
package com.gempukku.lotro.cards.set20.site;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractSite;
|
||||||
|
import com.gempukku.lotro.cards.TriggerConditions;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Morannon
|
||||||
|
* 5 6
|
||||||
|
* When you move to this site add 3 threats, when you move from this site remove 3 threats.
|
||||||
|
*/
|
||||||
|
public class Card20_443 extends AbstractSite {
|
||||||
|
public Card20_443() {
|
||||||
|
super("Morannon", Block.SECOND_ED, 5, 6, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (TriggerConditions.movesTo(game, effectResult, self)) {
|
||||||
|
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new AddThreatsEffect(game.getGameState().getCurrentPlayerId(), self, 3));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
if (TriggerConditions.movesFrom(game, effectResult, self)) {
|
||||||
|
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new RemoveThreatsEffect(self, 3));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user