Simplified some Gandalf events
This commit is contained in:
@@ -132,23 +132,19 @@
|
|||||||
"effects": {
|
"effects": {
|
||||||
"type": "event",
|
"type": "event",
|
||||||
"effect": {
|
"effect": {
|
||||||
"type": "choice",
|
"type": "modifyStrength",
|
||||||
"texts": [
|
"filter": "choose(unbound,companion)",
|
||||||
"Make an unbound companion strength +3",
|
"memorize": "unboundCompanion",
|
||||||
"Make an unbound companion strength +2"
|
"amount": {
|
||||||
],
|
"type": "condition",
|
||||||
"effects": [
|
"condition": {
|
||||||
{
|
"type": "memoryMatches",
|
||||||
"type": "modifyStrength",
|
"memory": "unboundCompanion",
|
||||||
"filter": "choose(unbound,companion,not(resistanceLessThan(4)))",
|
"filter": "resistanceLessThan(4)"
|
||||||
"amount": 3
|
|
||||||
},
|
},
|
||||||
{
|
"true": 2,
|
||||||
"type": "modifyStrength",
|
"false": 3
|
||||||
"filter": "choose(unbound,companion,resistanceLessThan(4))",
|
}
|
||||||
"amount": 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -192,23 +188,19 @@
|
|||||||
"effects": {
|
"effects": {
|
||||||
"type": "event",
|
"type": "event",
|
||||||
"effect": {
|
"effect": {
|
||||||
"type": "choice",
|
"type": "modifyStrength",
|
||||||
"texts": [
|
"filter": "choose(minion)",
|
||||||
"Make a minion strength -3",
|
"memorize": "chosenMinion",
|
||||||
"Make a minion strength -2"
|
"amount": {
|
||||||
],
|
"type": "condition",
|
||||||
"effects": [
|
"condition": {
|
||||||
{
|
"type": "memoryMatches",
|
||||||
"type": "modifyStrength",
|
"memory": "chosenMinion",
|
||||||
"filter": "choose(minion,inSkirmishAgainst(companion,not(resistanceLessThan(5))))",
|
"filter": "inSkirmishAgainst(companion,not(resistanceLessThan(5)))"
|
||||||
"amount": -3
|
|
||||||
},
|
},
|
||||||
{
|
"true": -3,
|
||||||
"type": "modifyStrength",
|
"false": -2
|
||||||
"filter": "choose(minion,not(inSkirmishAgainst(companion,not(resistanceLessThan(5)))))",
|
}
|
||||||
"amount": -2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -333,4 +333,46 @@ public class NewCardsAtTest extends AbstractAtTest {
|
|||||||
|
|
||||||
assertEquals(Zone.DISCARD, blackBreath.getZone());
|
assertEquals(Zone.DISCARD, blackBreath.getZone());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void strengthBonusDependingOnCharacterPlayedOn() throws DecisionResultInvalidException, CardNotFoundException {
|
||||||
|
initializeSimplestGame();
|
||||||
|
|
||||||
|
final PhysicalCardImpl gandalf = createCard(P1, "40_70");
|
||||||
|
final PhysicalCardImpl bolsteredSpirits = createCard(P1, "40_67");
|
||||||
|
PhysicalCardImpl nazgul = createCard(P2, "40_211");
|
||||||
|
|
||||||
|
_game.getGameState().addCardToZone(_game, gandalf, Zone.FREE_CHARACTERS);
|
||||||
|
_game.getGameState().addCardToZone(_game, bolsteredSpirits, Zone.HAND);
|
||||||
|
_game.getGameState().addCardToZone(_game, nazgul, Zone.SHADOW_CHARACTERS);
|
||||||
|
|
||||||
|
skipMulligans();
|
||||||
|
|
||||||
|
// Pass in fellowship
|
||||||
|
playerDecided(P1, "");
|
||||||
|
|
||||||
|
// Pass in shadow
|
||||||
|
playerDecided(P2, "");
|
||||||
|
|
||||||
|
//Pass in maneuver
|
||||||
|
playerDecided(P1, "");
|
||||||
|
playerDecided(P2, "");
|
||||||
|
|
||||||
|
//Pass in archery
|
||||||
|
playerDecided(P1, "");
|
||||||
|
playerDecided(P2, "");
|
||||||
|
|
||||||
|
//Pass in assignment
|
||||||
|
playerDecided(P1, "");
|
||||||
|
playerDecided(P2, "");
|
||||||
|
|
||||||
|
playerDecided(P1, gandalf.getCardId() + " " + nazgul.getCardId());
|
||||||
|
playerDecided(P1, "" + gandalf.getCardId());
|
||||||
|
|
||||||
|
playerDecided(P1, "0");
|
||||||
|
playerDecided(P1, "");
|
||||||
|
|
||||||
|
assertEquals(7 + 3, _game.getModifiersQuerying().getStrength(_game, gandalf));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user