"Poised for Assault"

This commit is contained in:
marcins78@gmail.com
2012-02-07 11:14:11 +00:00
parent d49f61652f
commit f9e00798c4
2 changed files with 60 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ import java.util.List;
*/
public class Card15_165 extends AbstractMinion {
public Card15_165() {
super(3, 8, 2, 5, Race.URUK_HAI, Culture.URUK_HAI, "Merciless Berserker", true);
super(3, 8, 2, 5, Race.URUK_HAI, Culture.URUK_HAI, "Merciless Berserker");
addKeyword(Keyword.DAMAGE, 1);
}

View File

@@ -0,0 +1,59 @@
package com.gempukku.lotro.cards.set15.uruk_hai;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.AddTokenEffect;
import com.gempukku.lotro.cards.effects.RemoveTokenEffect;
import com.gempukku.lotro.cards.effects.TakeControlOfASiteEffect;
import com.gempukku.lotro.common.*;
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.ActivateCardAction;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.timing.Action;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Hunters
* Side: Shadow
* Culture: Uruk-hai
* Twilight Cost: 2
* Type: Condition • Support Area
* Game Text: Each time a companion loses a skirmish involving an [URUK-HAI] minion, place an [URUK-HAI] token here.
* Skirmish: Remove 2 [URUK-HAI] tokens from here to take control of a site.
*/
public class Card15_166 extends AbstractPermanent {
public Card15_166() {
super(Side.SHADOW, 2, CardType.CONDITION, Culture.URUK_HAI, Zone.SUPPORT, "Poised for Assault", true);
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.losesSkirmishInvolving(game, effectResult, CardType.COMPANION, Filters.and(Culture.URUK_HAI, CardType.MINION))) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new AddTokenEffect(self, self, Token.URUK_HAI));
return Collections.singletonList(action);
}
return null;
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0)
&& PlayConditions.canRemoveTokens(game, self, Token.URUK_HAI, 2)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new RemoveTokenEffect(self, self, Token.URUK_HAI, 2));
action.appendEffect(
new TakeControlOfASiteEffect(self, playerId));
return Collections.singletonList(action);
}
return null;
}
}