- "Orc Pillager" now correctly gives -1 for each attached card to the character in skirmish against it, rather than +1 strength to itself for each such card.

This commit is contained in:
marcins78@gmail.com
2011-11-02 16:33:42 +00:00
parent 00dfb5b858
commit cb4936797e
3 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package com.gempukku.lotro.cards.modifiers.evaluator;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.logic.modifiers.ModifiersQuerying;
import com.gempukku.lotro.logic.modifiers.evaluator.Evaluator;
public class NegativeEvaluator implements Evaluator {
private Evaluator _source;
public NegativeEvaluator(Evaluator source) {
_source = source;
}
@Override
public int evaluateExpression(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard self) {
return -_source.evaluateExpression(gameState, modifiersQuerying, self);
}
}

View File

@@ -2,6 +2,7 @@ package com.gempukku.lotro.cards.set3.sauron;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.modifiers.evaluator.CountSpottableEvaluator;
import com.gempukku.lotro.cards.modifiers.evaluator.NegativeEvaluator;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.Side;
@@ -33,6 +34,6 @@ public class Card3_096 extends AbstractMinion {
@Override
public List<? extends Modifier> getAlwaysOnModifiers(LotroGame game, PhysicalCard self) {
return Collections.singletonList(
new StrengthModifier(self, self, null, new CountSpottableEvaluator(Side.FREE_PEOPLE, Filters.attachedTo(Filters.inSkirmishAgainst(self)))));
new StrengthModifier(self, Filters.inSkirmishAgainst(self), null, new NegativeEvaluator(new CountSpottableEvaluator(Side.FREE_PEOPLE, Filters.attachedTo(Filters.inSkirmishAgainst(self))))));
}
}

View File

@@ -2,6 +2,8 @@
<b>2 Nov. 2011</b>
- "O Elbereth! Gilthoniel!" should correctly give the option to cancel a skirmish with Nazgul when used in skirmish
against Nazgul.
- "Orc Pillager" now correctly gives -1 for each attached card to the character in skirmish against it, rather than
+1 strength to itself for each such card.
<b>1 Nov. 2011</b>
- Fixed "Theoden" (4P365) to not crash game due to testing if you can attach hides (also a possession, right?) to it.