"Orc Chieftain"
This commit is contained in:
@@ -63,8 +63,7 @@ public class AttachPermanentAction implements CostToEffectAction {
|
||||
|
||||
_preCostIterator = preCostEffects.iterator();
|
||||
|
||||
_playCardEffect = new TriggeringEffect(new PlayCardResult(card));
|
||||
|
||||
_playCardEffect = new TriggeringEffect(new PlayCardResult(card, target));
|
||||
}
|
||||
};
|
||||
_discardCardEffect = new PutCardIntoDiscardEffect(card);
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.gempukku.lotro.cards.set1.sauron;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractMinion;
|
||||
import com.gempukku.lotro.cards.effects.AddTwilightEffect;
|
||||
import com.gempukku.lotro.common.Culture;
|
||||
import com.gempukku.lotro.common.Keyword;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.actions.DefaultCostToEffectAction;
|
||||
import com.gempukku.lotro.logic.timing.Action;
|
||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||
import com.gempukku.lotro.logic.timing.UnrespondableEffect;
|
||||
import com.gempukku.lotro.logic.timing.results.PlayCardResult;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Set: The Fellowship of the Ring
|
||||
* Side: Shadow
|
||||
* Culture: Sauron
|
||||
* Twilight Cost: 2
|
||||
* Type: Minion • Orc
|
||||
* Strength: 7
|
||||
* Vitality: 2
|
||||
* Site: 6
|
||||
* Game Text: When you play a weapon on this minion, add (2) (limit once per turn).
|
||||
*/
|
||||
public class Card1_266 extends AbstractMinion {
|
||||
public Card1_266() {
|
||||
super(2, 7, 2, 6, Keyword.ORC, Culture.SAURON, "Orc Chieftain");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<? extends Action> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||
if (effectResult.getType() == EffectResult.Type.PLAY) {
|
||||
PlayCardResult playCardResult = (PlayCardResult) effectResult;
|
||||
PhysicalCard playedCard = playCardResult.getPlayedCard();
|
||||
if (playCardResult.getAttachedTo() == self
|
||||
&& self.getData() == null
|
||||
&& (
|
||||
game.getModifiersQuerying().hasKeyword(game.getGameState(), playedCard, Keyword.HAND_WEAPON)
|
||||
|| game.getModifiersQuerying().hasKeyword(game.getGameState(), playedCard, Keyword.RANGED_WEAPON))
|
||||
) {
|
||||
DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, null, "Add (2)");
|
||||
action.addEffect(
|
||||
new AddTwilightEffect(2));
|
||||
action.addEffect(
|
||||
new UnrespondableEffect() {
|
||||
@Override
|
||||
public void playEffect(LotroGame game) {
|
||||
self.storeData(new Object());
|
||||
}
|
||||
});
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
}
|
||||
if (effectResult.getType() == EffectResult.Type.END_OF_TURN)
|
||||
self.removeData();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user