- "Slow-kindled Courage" and other FP conditions that give Assignment actions to minions, now actually do that.
This commit is contained in:
@@ -45,7 +45,7 @@ public class Card7_013 extends AbstractAttachable {
|
||||
new AddActionToCardModifier(self, null, CardType.MINION) {
|
||||
@Override
|
||||
protected ActivateCardAction createExtraPhaseAction(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard matchingCard) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard)) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard, 0)) {
|
||||
ActivateCardAction action = new ActivateCardAction(matchingCard);
|
||||
action.setText("Assign to " + GameUtils.getFullName(self.getAttachedTo()));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Card7_015 extends AbstractAttachable {
|
||||
new AddActionToCardModifier(self, null, CardType.MINION) {
|
||||
@Override
|
||||
protected ActivateCardAction createExtraPhaseAction(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard matchingCard) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard)) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard, 0)) {
|
||||
ActivateCardAction action = new ActivateCardAction(matchingCard);
|
||||
action.setText("Assign to " + GameUtils.getFullName(self.getAttachedTo()));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Card7_049 extends AbstractAttachable {
|
||||
new AddActionToCardModifier(self, null, CardType.MINION) {
|
||||
@Override
|
||||
protected ActivateCardAction createExtraPhaseAction(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard matchingCard) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard)) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard, 0)) {
|
||||
ActivateCardAction action = new ActivateCardAction(matchingCard);
|
||||
action.setText("Assign to Gandalf");
|
||||
action.appendEffect(
|
||||
|
||||
@@ -46,7 +46,7 @@ public class Card7_077 extends AbstractAttachable {
|
||||
new AddActionToCardModifier(self, null, CardType.MINION) {
|
||||
@Override
|
||||
protected ActivateCardAction createExtraPhaseAction(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard matchingCard) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard)) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard, 0)) {
|
||||
ActivateCardAction action = new ActivateCardAction(matchingCard);
|
||||
action.setText("Assign to " + GameUtils.getFullName(self.getAttachedTo()));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -46,7 +46,7 @@ public class Card7_126 extends AbstractAttachable {
|
||||
new AddActionToCardModifier(self, null, CardType.MINION) {
|
||||
@Override
|
||||
protected ActivateCardAction createExtraPhaseAction(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard matchingCard) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard)) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard, 0)) {
|
||||
ActivateCardAction action = new ActivateCardAction(matchingCard);
|
||||
action.setText("Assign to " + GameUtils.getFullName(self.getAttachedTo()));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -46,7 +46,7 @@ public class Card7_328 extends AbstractAttachable {
|
||||
new AddActionToCardModifier(self, null, CardType.MINION) {
|
||||
@Override
|
||||
protected ActivateCardAction createExtraPhaseAction(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard matchingCard) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard)) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, matchingCard, 0)) {
|
||||
ActivateCardAction action = new ActivateCardAction(matchingCard);
|
||||
action.setText("Assign to " + GameUtils.getFullName(self.getAttachedTo()));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -11,14 +11,13 @@ import com.gempukku.lotro.logic.decisions.AwaitingDecisionType;
|
||||
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
||||
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
|
||||
import com.gempukku.lotro.logic.vo.LotroDeck;
|
||||
import static junit.framework.Assert.*;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static junit.framework.Assert.*;
|
||||
|
||||
public class AssignmentAtTest extends AbstractAtTest {
|
||||
@Test
|
||||
public void orcAssassinAssignNotToAlly() throws DecisionResultInvalidException {
|
||||
@@ -508,4 +507,49 @@ public class AssignmentAtTest extends AbstractAtTest {
|
||||
assertEquals(1, secondAssignment.getShadowCharacters().size());
|
||||
assertTrue(secondAssignment.getShadowCharacters().contains(orcAssassin2));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void slowKindledCourageAllowsMinionsToAssign() throws DecisionResultInvalidException {
|
||||
initializeSimplestGame();
|
||||
|
||||
skipMulligans();
|
||||
|
||||
PhysicalCardImpl merry = new PhysicalCardImpl(100, "1_303", P1, _library.getLotroCardBlueprint("1_303"));
|
||||
PhysicalCardImpl slowKindledCourage = new PhysicalCardImpl(101, "7_328", P1, _library.getLotroCardBlueprint("7_328"));
|
||||
PhysicalCardImpl urukHaiRaidingParty = new PhysicalCardImpl(102, "1_158", P2, _library.getLotroCardBlueprint("1_158"));
|
||||
|
||||
_game.getGameState().addCardToZone(_game, merry, Zone.FREE_CHARACTERS);
|
||||
_game.getGameState().attachCard(_game, slowKindledCourage, merry);
|
||||
|
||||
// End fellowship phase
|
||||
playerDecided(P1, "");
|
||||
|
||||
_game.getGameState().addCardToZone(_game, urukHaiRaidingParty, Zone.SHADOW_CHARACTERS);
|
||||
|
||||
// End shadow phase
|
||||
playerDecided(P2, "");
|
||||
|
||||
// End maneuvers phase
|
||||
playerDecided(P1, "");
|
||||
playerDecided(P2, "");
|
||||
|
||||
// End arhcery phase
|
||||
playerDecided(P1, "");
|
||||
playerDecided(P2, "");
|
||||
|
||||
// Assignment phase
|
||||
playerDecided(P1, "");
|
||||
|
||||
AwaitingDecision assignmentActions = _userFeedback.getAwaitingDecision(P2);
|
||||
assertEquals(AwaitingDecisionType.CARD_ACTION_CHOICE, assignmentActions.getDecisionType());
|
||||
validateContents(toCardIdArray(urukHaiRaidingParty), (String[]) assignmentActions.getDecisionParameters().get("cardId"));
|
||||
|
||||
playerDecided(P2, "0");
|
||||
|
||||
assertEquals(1, _game.getGameState().getAssignments().size());
|
||||
final Assignment assignment = _game.getGameState().getAssignments().get(0);
|
||||
assertEquals(merry, assignment.getFellowshipCharacter());
|
||||
assertEquals(1, assignment.getShadowCharacters().size());
|
||||
assertTrue(assignment.getShadowCharacters().contains(urukHaiRaidingParty));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<pre style="font-size:80%">
|
||||
<b>2 Sep. 2012</b>
|
||||
- "Slow-kindled Courage" and other FP conditions that give Assignment actions to minions, now actually do that.
|
||||
|
||||
<b>1 Sep. 2012</b>
|
||||
- "Long Prepared" now correctly allows to exert a GONDOR Man and then wounds a roaming minion in that man's skirmish.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user