"Wizard Staff"
This commit is contained in:
@@ -0,0 +1,68 @@
|
|||||||
|
package com.gempukku.lotro.cards.set2.gandalf;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.costs.ExertCharactersCost;
|
||||||
|
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
|
||||||
|
import com.gempukku.lotro.cards.modifiers.StrengthModifier;
|
||||||
|
import com.gempukku.lotro.common.*;
|
||||||
|
import com.gempukku.lotro.filters.Filter;
|
||||||
|
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.effects.ChooseActiveCardEffect;
|
||||||
|
import com.gempukku.lotro.logic.modifiers.Modifier;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Mines of Moria
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gandalf
|
||||||
|
* Twilight Cost: 2
|
||||||
|
* Type: Possession • Staff
|
||||||
|
* Strength: +1
|
||||||
|
* Game Text: Bearer must be a Wizard. Skirmish: Exert bearer twice to make a minion strength -3.
|
||||||
|
*/
|
||||||
|
public class Card2_029 extends AbstractAttachableFPPossession {
|
||||||
|
public Card2_029() {
|
||||||
|
super(2, Culture.GANDALF, CardType.ARTIFACT, Keyword.STAFF, "Wizard Staff", false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Filter getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
return Filters.race(Race.WIZARD);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||||
|
return new StrengthModifier(self, Filters.hasAttached(self), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self)
|
||||||
|
&& game.getModifiersQuerying().getVitality(game.getGameState(), self.getAttachedTo()) > 2) {
|
||||||
|
final ActivateCardAction action = new ActivateCardAction(self, Keyword.SKIRMISH);
|
||||||
|
action.appendCost(
|
||||||
|
new ExertCharactersCost(playerId, self.getAttachedTo()));
|
||||||
|
action.appendCost(
|
||||||
|
new ExertCharactersCost(playerId, self.getAttachedTo()));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseActiveCardEffect(playerId, "Choose minion", Filters.type(CardType.MINION)) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(PhysicalCard card) {
|
||||||
|
action.insertEffect(
|
||||||
|
new AddUntilEndOfPhaseModifierEffect(
|
||||||
|
new StrengthModifier(self, Filters.sameCard(card), -3), Phase.SKIRMISH));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user