This commit is contained in:
marcins78
2013-03-25 10:21:49 +00:00
parent 3a58787a82
commit 944fe04fc0
2 changed files with 22 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
var set20 = { var set20 = {
'20_1': 'http://lotrtcg.org/coreset/onering/theoneringdofp.jpg', '20_1': 'http://lotrtcg.org/coreset/onering/theoneringdofp.jpg',
'20_2': 'http://lotrtcg.org/coreset/onering/theoneringtrr.jpg', '20_2': 'http://lotrtcg.org/coreset/onering/theoneringtrr.jpg',
'20_3': 'http://lotrtcg.org/coreset/dunland/dunlendingfirebrand.jpg', '20_3': 'http://www.lotrtcg.org/coreset/dunland/dunlendingfirebrand(r2).jpg',
'20_4': 'http://lotrtcg.org/coreset/dunland/dunlendingmarauder.jpg', '20_4': 'http://lotrtcg.org/coreset/dunland/dunlendingmarauder.jpg',
'20_5': 'http://lotrtcg.org/coreset/dunland/dunlendingtribesman(r1).jpg', '20_5': 'http://lotrtcg.org/coreset/dunland/dunlendingtribesman(r1).jpg',
'20_6': 'http://lotrtcg.org/coreset/dunland/dunlendingclansman(r1).jpg', '20_6': 'http://lotrtcg.org/coreset/dunland/dunlendingclansman(r1).jpg',

View File

@@ -3,35 +3,43 @@ package com.gempukku.lotro.cards.set20.dunland;
import com.gempukku.lotro.cards.AbstractMinion; import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions; import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions; import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.PreventableEffect; import com.gempukku.lotro.cards.effects.LiberateASiteEffect;
import com.gempukku.lotro.cards.effects.TakeControlOfASiteEffect; import com.gempukku.lotro.cards.effects.TakeControlOfASiteEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture; import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Race; import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.Side;
import com.gempukku.lotro.filters.Filters; import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard; import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame; import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.OptionalTriggerAction; import com.gempukku.lotro.logic.actions.OptionalTriggerAction;
import com.gempukku.lotro.logic.actions.SubAction; import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.timing.Effect;
import com.gempukku.lotro.logic.timing.EffectResult; import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
/** /**
* 2 * 3
* Dunlending Firebrand * Dunlending Firebrand
* Dunland Minion • Man * Minion • Man
* 7 1 3 * 9 1 3
* When you play Dunlending Firebrand, you may spot 2 other [Dunland] men to take control of a site. * When you play this minion, you may spot 2 other [Dunland] men to take control of a site.
* The Free Peoples player may discard a Free Peoples condition to prevent this. * If this minion loses a skirmish, the Free Peoples player may liberate a site.
* http://www.lotrtcg.org/coreset/dunland/dunlendingfirebrand(r2).jpg
*/ */
public class Card20_003 extends AbstractMinion { public class Card20_003 extends AbstractMinion {
public Card20_003() { public Card20_003() {
super(2, 7, 1, 3, Race.MAN, Culture.DUNLAND, "Dunlending Firebrand"); super(3, 9, 1, 3, Race.MAN, Culture.DUNLAND, "Dunlending Firebrand");
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.losesSkirmish(game, effectResult, self)) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new LiberateASiteEffect(self, game.getGameState().getCurrentPlayerId(), null));
return Collections.singletonList(action);
}
return null;
} }
@Override @Override
@@ -40,14 +48,7 @@ public class Card20_003 extends AbstractMinion {
&& PlayConditions.canSpot(game, 2, Filters.not(self), Culture.DUNLAND, Race.MAN)) { && PlayConditions.canSpot(game, 2, Filters.not(self), Culture.DUNLAND, Race.MAN)) {
final OptionalTriggerAction action = new OptionalTriggerAction(self); final OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect( action.appendEffect(
new PreventableEffect(action, new TakeControlOfASiteEffect(self, playerId), game.getGameState().getCurrentPlayerId(), new TakeControlOfASiteEffect(self, playerId));
new PreventableEffect.PreventionCost() {
@Override
public Effect createPreventionCostForPlayer(SubAction subAction, String playerId) {
return new ChooseAndDiscardCardsFromPlayEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, Side.FREE_PEOPLE, CardType.CONDITION);
}
}));
return Collections.singletonList(action); return Collections.singletonList(action);
} }
return null; return null;