Adding card affects card to rings.

This commit is contained in:
marcins78@gmail.com
2011-09-21 12:43:40 +00:00
parent b4d1ecd97a
commit 10888f7a0d
2 changed files with 4 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ public class Card1_001 extends AbstractAttachable {
DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, Keyword.RESPONSE, "Put on The One Ring until the Regroup phase");
action.addCost(new PreventWoundEffect(woundEffect, self.getAttachedTo()));
action.addEffect(new CardAffectsCardEffect(self, self.getAttachedTo()));
action.addEffect(new AddBurdenEffect(playerId));
action.addEffect(new AddBurdenEffect(playerId));
action.addEffect(new PutOnTheOneRingEffect());
@@ -101,6 +102,7 @@ public class Card1_001 extends AbstractAttachable {
if (woundEffect.getCardsToBeWounded(game).contains(self.getAttachedTo())) {
RequiredTriggerAction action = new RequiredTriggerAction(self, null, "Add 2 burdens instead of taking a wound");
action.addCost(new PreventWoundEffect(woundEffect, self.getAttachedTo()));
action.addEffect(new CardAffectsCardEffect(self, self.getAttachedTo()));
action.addEffect(new AddBurdenEffect(self.getOwner()));
action.addEffect(new AddBurdenEffect(self.getOwner()));
return Collections.singletonList(action);

View File

@@ -66,6 +66,7 @@ public class Card1_002 extends AbstractAttachable {
DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, Keyword.RESPONSE, "Put on The One Ring until the Regroup phase");
action.addCost(new PreventWoundEffect(woundEffect, self.getAttachedTo()));
action.addEffect(new CardAffectsCardEffect(self, self.getAttachedTo()));
action.addEffect(new AddBurdenEffect(playerId));
action.addEffect(new PutOnTheOneRingEffect());
action.addEffect(new AddUntilStartOfPhaseActionProxyEffect(
@@ -100,6 +101,7 @@ public class Card1_002 extends AbstractAttachable {
List<RequiredTriggerAction> actions = new LinkedList<RequiredTriggerAction>();
RequiredTriggerAction action = new RequiredTriggerAction(self, null, "Add a burden instead of taking a wound");
action.addCost(new PreventWoundEffect(woundEffect, self.getAttachedTo()));
action.addEffect(new CardAffectsCardEffect(self, self.getAttachedTo()));
action.addEffect(new AddBurdenEffect(self.getOwner()));
return actions;
}