Fixed V1 The White Council being usable more than twice.
This commit is contained in:
@@ -412,11 +412,8 @@
|
||||
{
|
||||
type: activated
|
||||
phase: regroup
|
||||
limitPerPhase: 2
|
||||
requires: [
|
||||
{
|
||||
type: perPhaseLimit
|
||||
limit: 2
|
||||
}
|
||||
{
|
||||
type: canSpot
|
||||
count: 2
|
||||
@@ -429,21 +426,8 @@
|
||||
count: 2
|
||||
}
|
||||
effect: {
|
||||
type: If
|
||||
check: {
|
||||
type: perPhaseLimit
|
||||
limit: 2
|
||||
}
|
||||
true: [
|
||||
{
|
||||
type: incrementPerPhaseLimit
|
||||
limit: 1
|
||||
}
|
||||
{
|
||||
type: heal
|
||||
select: choose(companion,or(name(Gandalf),signet(gandalf)))
|
||||
}
|
||||
]
|
||||
type: heal
|
||||
select: choose(companion,or(name(Gandalf),signet(gandalf)))
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -252,6 +252,12 @@ public class GenericCardTestHelper extends AbstractAtTest {
|
||||
public AwaitingDecision FreepsGetAwaitingDecision() { return GetAwaitingDecision(P1); }
|
||||
public AwaitingDecision ShadowGetAwaitingDecision() { return GetAwaitingDecision(P2); }
|
||||
public AwaitingDecision GetAwaitingDecision(String playerID) { return _userFeedback.getAwaitingDecision(playerID); }
|
||||
public AwaitingDecision GetCurrentDecision() {
|
||||
var freeps = FreepsGetAwaitingDecision();
|
||||
if(freeps != null)
|
||||
return freeps;
|
||||
return ShadowGetAwaitingDecision();
|
||||
}
|
||||
|
||||
public Boolean FreepsDecisionAvailable(String text) { return DecisionAvailable(P1, text); }
|
||||
public Boolean ShadowDecisionAvailable(String text) { return DecisionAvailable(P2, text); }
|
||||
@@ -751,7 +757,7 @@ public class GenericCardTestHelper extends AbstractAtTest {
|
||||
ShadowDeclineReconciliation();
|
||||
}
|
||||
while(ShadowDecisionAvailable("discard down")) {
|
||||
ShadowChooseCard((PhysicalCardImpl) GetShadowHand().get(0));
|
||||
ShadowChooseCard((PhysicalCardImpl) GetShadowHand().getFirst());
|
||||
}
|
||||
}
|
||||
public void SkipToPhase(Phase target) throws DecisionResultInvalidException {
|
||||
@@ -768,7 +774,17 @@ public class GenericCardTestHelper extends AbstractAtTest {
|
||||
ShadowPassCurrentPhaseAction();
|
||||
}
|
||||
else {
|
||||
PassCurrentPhaseActions();
|
||||
var freeps = FreepsGetAwaitingDecision();
|
||||
var shadow = ShadowGetAwaitingDecision();
|
||||
if(freeps != null && freeps.getText().toLowerCase().contains("required")) {
|
||||
FreepsChooseAction("0");
|
||||
}
|
||||
else if(shadow != null && shadow.getText().toLowerCase().contains("required")){
|
||||
ShadowChooseAction("0");
|
||||
}
|
||||
else {
|
||||
PassCurrentPhaseActions();
|
||||
}
|
||||
}
|
||||
|
||||
if(attempts == 20)
|
||||
|
||||
@@ -177,8 +177,9 @@ public class Card_V1_018_Tests
|
||||
//limit of 2 means it won't let us even with healthy allies
|
||||
assertEquals(1, scn.GetWoundsOn(galadriel));
|
||||
assertEquals(2, scn.GetWoundsOn(elrond));
|
||||
assertTrue(scn.FreepsActionAvailable(council));
|
||||
assertFalse(scn.FreepsActionAvailable(council));
|
||||
|
||||
scn.SkipToSite(3);
|
||||
scn.SkipToPhase(Phase.REGROUP);
|
||||
|
||||
assertTrue(scn.FreepsActionAvailable(council));
|
||||
|
||||
Reference in New Issue
Block a user