"Riders in Black" now correctly adds strength bonus

This commit is contained in:
marcin.sciesinski
2017-11-13 10:19:15 -08:00
parent 9042ed0402
commit 23f3805002
2 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,7 @@
<pre style="font-size:80%">
<b>13 Nov. 2017</b>
- "Riders in Black" now correctly adds strength bonus.
<b>17 Dec. 2015</b>
- "Armor of Khazad" no longer allows to return itself from discard and can now be transferred.

View File

@@ -37,13 +37,14 @@ public class Card11_215 extends AbstractEvent {
new RevealHandEffect(self, playerId, playerId) {
@Override
protected void cardsRevealed(final Collection<? extends PhysicalCard> cards) {
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId,
new Evaluator() {
@Override
public int evaluateExpression(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard cardAffected) {
return Filters.filter(cards, game.getGameState(), game.getModifiersQuerying(), Culture.WRAITH, CardType.MINION).size();
}
}, Culture.WRAITH, CardType.MINION);
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId,
new Evaluator() {
@Override
public int evaluateExpression(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard cardAffected) {
return Filters.filter(cards, game.getGameState(), game.getModifiersQuerying(), Culture.WRAITH, CardType.MINION).size();
}
}, Culture.WRAITH, CardType.MINION));
}
});
return action;