- "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:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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))))));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user