"Goblin Runner", fixing "The One Ring" and choice actions.
This commit is contained in:
@@ -41,7 +41,7 @@ public class ChoiceEffect extends UnrespondableEffect {
|
||||
possibleEffects.add(effect);
|
||||
}
|
||||
|
||||
if (possibleEffects.size() > 1) {
|
||||
if (possibleEffects.size() == 1) {
|
||||
if (_addedAsCost)
|
||||
_action.addCost(possibleEffects.get(0));
|
||||
else
|
||||
|
||||
@@ -61,7 +61,7 @@ public class Card1_001 extends AbstractLotroCardBlueprint {
|
||||
action.addEffect(new AddBurdenEffect(playerId));
|
||||
action.addEffect(new AddBurdenEffect(playerId));
|
||||
action.addEffect(new PutOnTheOneRingEffect());
|
||||
action.addEffect(new AddUntilEndOfPhaseActionProxyEffect(
|
||||
action.addEffect(new AddUntilStartOfPhaseActionProxyEffect(
|
||||
new AbstractActionProxy() {
|
||||
@Override
|
||||
public List<? extends Action> getRequiredAfterTriggers(LotroGame lotroGame, EffectResult effectResult) {
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.gempukku.lotro.cards.set1.moria;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractMinion;
|
||||
import com.gempukku.lotro.cards.PlayConditions;
|
||||
import com.gempukku.lotro.cards.effects.AddTwilightEffect;
|
||||
import com.gempukku.lotro.common.Culture;
|
||||
import com.gempukku.lotro.common.Keyword;
|
||||
import com.gempukku.lotro.filters.Filters;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.actions.CostToEffectAction;
|
||||
import com.gempukku.lotro.logic.timing.Action;
|
||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Set: The Fellowship of the Ring
|
||||
* Side: Shadow
|
||||
* Culture: Moria
|
||||
* Twilight Cost: 1
|
||||
* Type: Minion • Orc
|
||||
* Strength: 5
|
||||
* Vitality: 1
|
||||
* Site: 4
|
||||
* Game Text: When you play this minion, you may add (2).
|
||||
*/
|
||||
public class Card1_178 extends AbstractMinion {
|
||||
public Card1_178() {
|
||||
super(1, 5, 1, 4, Culture.MORIA, "Goblin Runner");
|
||||
addKeyword(Keyword.ORC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||
if (PlayConditions.played(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.sameCard(self))) {
|
||||
CostToEffectAction action = new CostToEffectAction(self, null, "You mad add (2)");
|
||||
action.addEffect(new AddTwilightEffect(2));
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import java.util.Map;
|
||||
public class LotroCardBlueprintLibrary {
|
||||
private String[] _packageNames =
|
||||
new String[]{
|
||||
"", ".dwarven", ".elven", ".isengard", ".shire", ".site"
|
||||
"", ".dwarven", ".elven", ".isengard", ".moria", ".shire", ".site"
|
||||
};
|
||||
private Map<String, LotroCardBlueprint> _blueprintMap = new HashMap<String, LotroCardBlueprint>();
|
||||
|
||||
|
||||
@@ -56,6 +56,9 @@ public class LotroServer {
|
||||
for (int i = 3; i <= 68; i++)
|
||||
lotroDeck.addCard("1_" + i);
|
||||
|
||||
for (int i = 0; i < 30; i++)
|
||||
lotroDeck.addCard("1_178");
|
||||
|
||||
// Sites
|
||||
lotroDeck.addSite("1_326");
|
||||
lotroDeck.addSite("1_331");
|
||||
|
||||
Reference in New Issue
Block a user