- "Isengard Scout Troop" now exerts itself to take control of a site.

This commit is contained in:
marcins78@gmail.com
2011-12-27 11:38:11 +00:00
parent d978f90417
commit e5833f0ab3
2 changed files with 12 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ package com.gempukku.lotro.cards.set5.isengard;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
import com.gempukku.lotro.cards.effects.TakeControlOfASiteEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
@@ -11,12 +11,10 @@ import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.GameUtils;
import com.gempukku.lotro.logic.actions.OptionalTriggerAction;
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
import com.gempukku.lotro.logic.modifiers.Modifier;
import com.gempukku.lotro.logic.timing.EffectResult;
import com.gempukku.lotro.logic.timing.results.CharacterWonSkirmishResult;
import java.util.Collections;
import java.util.List;
@@ -47,18 +45,14 @@ public class Card5_055 extends AbstractMinion {
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.winsSkirmish(game, effectResult, Culture.ISENGARD, Race.ORC)) {
CharacterWonSkirmishResult result = (CharacterWonSkirmishResult) effectResult;
PhysicalCard winner = result.getWinner();
if (PlayConditions.canExert(self, game, winner)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.setText("Exert " + GameUtils.getCardLink(winner));
action.appendCost(
new ExertCharactersEffect(self, winner));
action.appendEffect(
new TakeControlOfASiteEffect(self, playerId));
return Collections.singletonList(action);
}
if (TriggerConditions.winsSkirmish(game, effectResult, Culture.ISENGARD, Race.ORC)
&& PlayConditions.canSelfExert(self, game)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new TakeControlOfASiteEffect(self, playerId));
return Collections.singletonList(action);
}
return null;

View File

@@ -1,4 +1,7 @@
<pre style="font-size:80%">
<b>27 Dec. 2011</b>
- "Isengard Scout Troop" now exerts itself to take control of a site.
<b>26 Dec. 2011</b>
- "Wizard Storm" should now work when fellowship moves from the site it's attached to.
- "Courtesy of My Hall" should be able to discard a hard from it now to heal a dwarf.