- Fixed "Caught in a Sack" 'null' popup.

This commit is contained in:
marcin.sciesinski
2017-11-13 14:04:58 -08:00
parent 4518507402
commit 6bd09a0492
2 changed files with 13 additions and 2 deletions

View File

@@ -20,6 +20,7 @@
- Added "His Wrath Was Redoubled"
- Added "Radagast, The Brown"
- Added "Ancestral Feuds"
- Fixed "Caught in a Sack" 'null' popup.
<b>17 Dec. 2015</b>
- "Armor of Khazad" no longer allows to return itself from discard and can now be transferred.

View File

@@ -67,12 +67,22 @@ public class Card31_065 extends AbstractPermanent {
protected void cardSelected(LotroGame game, final PhysicalCard card) {
action.appendEffect(new PreventableEffect(
action,
new AddUntilEndOfPhaseModifierEffect(new CantBeAssignedToSkirmishModifier(self, card)),
new AddUntilEndOfPhaseModifierEffect(new CantBeAssignedToSkirmishModifier(self, card)) {
@Override
public String getText(LotroGame game) {
return "prevent that";
}
},
Collections.singletonList(game.getGameState().getCurrentPlayerId()),
new PreventableEffect.PreventionCost() {
@Override
public Effect createPreventionCostForPlayer(SubAction subAction, String playerId) {
return new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Filters.name("Bilbo"));
return new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Filters.name("Bilbo")) {
@Override
public String getText(LotroGame game) {
return "exert Bilbo twice";
}
};
}
}));
}