This commit is contained in:
marcins78@gmail.com
2011-11-01 18:35:19 +00:00
parent dfc6904ce1
commit 7595b1092c
2 changed files with 7 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ public class Card6_051 extends AbstractAttachableFPPossession {
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (PlayConditions.winsSkirmish(effectResult, self.getAttachedTo())) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.setText("Heal another GONDOR companion");
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, Culture.GONDOR, CardType.COMPANION));
return Collections.singletonList(action);
@@ -55,6 +56,7 @@ public class Card6_051 extends AbstractAttachableFPPossession {
if (PlayConditions.winsSkirmish(effectResult, self.getAttachedTo())
&& PlayConditions.canSelfDiscard(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.setText("Discard to liberate a site");
action.appendCost(
new DiscardCardsFromPlayEffect(self, self));
action.appendEffect(

View File

@@ -119,6 +119,11 @@ public class LotroGameMediator {
sb.append("<br><b>Vitality:</b> " + vitality);
} catch (UnsupportedOperationException exp) {
}
try {
int siteNumber = _lotroGame.getModifiersQuerying().getMinionSiteNumber(_lotroGame.getGameState(), card);
sb.append("<br><b>Site number:</b> " + siteNumber);
} catch (UnsupportedOperationException exp) {
}
StringBuilder keywords = new StringBuilder();
for (Keyword keyword : Keyword.values()) {