"Aragorn"

This commit is contained in:
marcins78@gmail.com
2011-12-04 22:10:09 +00:00
parent 824e672028
commit f457c1358a
2 changed files with 48 additions and 0 deletions

View File

@@ -257,4 +257,8 @@ public class TriggerConditions {
}
return false;
}
public static boolean moves(LotroGame game, EffectResult effectResult) {
return effectResult.getType() == EffectResult.Type.WHEN_FELLOWSHIP_MOVES;
}
}

View File

@@ -0,0 +1,44 @@
package com.gempukku.lotro.cards.set11.gondor;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.effects.AddTwilightEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: Shadows
* Side: Free
* Culture: Gondor
* Twilight Cost: 1
* Type: Companion • Man
* Strength: 8
* Vitality: 4
* Resistance: 8
* Game Text: Ranger. Each time the fellowship moves, add (1).
*/
public class Card11_054 extends AbstractCompanion {
public Card11_054() {
super(1, 8, 4, 8, Culture.GONDOR, Race.MAN, null, "Aragorn", true);
addKeyword(Keyword.RANGER);
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.moves(game, effectResult)) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new AddTwilightEffect(self, 1));
return Collections.singletonList(action);
}
return null;
}
}