"Black Gate Sentry"

This commit is contained in:
marcins78@gmail.com
2012-01-31 14:11:02 +00:00
parent 458c736137
commit 79fa40daf2
7 changed files with 55 additions and 6 deletions

View File

@@ -232,7 +232,7 @@ public abstract class AbstractLotroCardBlueprint implements LotroCardBlueprint {
} }
@Override @Override
public String getExtraDisplayableInformation(PhysicalCard self) { public String getDisplayableInformation(PhysicalCard self) {
return null; return null;
} }

View File

@@ -198,7 +198,7 @@ public class SimpleLotroCardBlueprint implements LotroCardBlueprint {
} }
@Override @Override
public String getExtraDisplayableInformation(PhysicalCard self) { public String getDisplayableInformation(PhysicalCard self) {
return null; return null;
} }

View File

@@ -57,7 +57,7 @@ public class Card11_050 extends AbstractPermanent {
} }
@Override @Override
public String getExtraDisplayableInformation(PhysicalCard self) { public String getDisplayableInformation(PhysicalCard self) {
if (self.getWhileInZoneData() != null) if (self.getWhileInZoneData() != null)
return "Selected keyword is: " + ((Keyword) self.getWhileInZoneData()).getHumanReadable(); return "Selected keyword is: " + ((Keyword) self.getWhileInZoneData()).getHumanReadable();
return null; return null;

View File

@@ -55,7 +55,7 @@ public class Card15_076 extends AbstractPermanent {
} }
@Override @Override
public String getExtraDisplayableInformation(PhysicalCard self) { public String getDisplayableInformation(PhysicalCard self) {
if (self.getWhileInZoneData() != null) if (self.getWhileInZoneData() != null)
return "Random site name is: " + self.getWhileInZoneData(); return "Random site name is: " + self.getWhileInZoneData();
return null; return null;

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set15.orc;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
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.ChooseAndWoundCharactersEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Hunters
* Side: Shadow
* Culture: Orc
* Twilight Cost: 5
* Type: Minion • Orc
* Strength: 12
* Vitality: 3
* Site: 4
* Game Text: Skirmish: Exert this minion to wound a companion it is skirmishing.
*/
public class Card15_098 extends AbstractMinion {
public Card15_098() {
super(5, 12, 3, 4, Race.ORC, Culture.ORC, "Black Gate Sentry", true);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.COMPANION, Filters.inSkirmishAgainst(self)));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -89,7 +89,7 @@ public interface LotroCardBlueprint {
public Direction getSiteDirection(); public Direction getSiteDirection();
public String getExtraDisplayableInformation(PhysicalCard self); public String getDisplayableInformation(PhysicalCard self);
public enum Direction { public enum Direction {
LEFT, RIGHT LEFT, RIGHT

View File

@@ -132,7 +132,7 @@ public class LotroGameMediator {
sb.append("<br>" + GameUtils.getAppendedNames(stackedCards)); sb.append("<br>" + GameUtils.getAppendedNames(stackedCards));
} }
final String extraDisplayableInformation = card.getBlueprint().getExtraDisplayableInformation(card); final String extraDisplayableInformation = card.getBlueprint().getDisplayableInformation(card);
if (extraDisplayableInformation != null) { if (extraDisplayableInformation != null) {
sb.append("<br><b>Extra information:</b>"); sb.append("<br><b>Extra information:</b>");
sb.append("<br>" + extraDisplayableInformation); sb.append("<br>" + extraDisplayableInformation);