- "Hosts of the Last Alliance" now discards itself upon use.

This commit is contained in:
marcins78@gmail.com
2011-11-12 00:58:10 +00:00
parent e812f83d9c
commit a6d18ee75b
4 changed files with 4 additions and 77 deletions

View File

@@ -10,6 +10,7 @@ import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
import com.gempukku.lotro.logic.effects.WoundCharactersEffect;
import com.gempukku.lotro.logic.modifiers.Modifier;
import com.gempukku.lotro.logic.modifiers.SpotCondition;
@@ -45,6 +46,8 @@ public class Card2_018 extends AbstractPermanent {
final WoundCharactersEffect woundEffect = (WoundCharactersEffect) effect;
Collection<PhysicalCard> woundedCharacters = woundEffect.getAffectedCardsMinusPrevented(game);
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new DiscardCardsFromPlayEffect(self, self));
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose an Elf", Filters.race(Race.ELF), Filters.in(woundedCharacters)) {
@Override

View File

@@ -1,39 +0,0 @@
package com.gempukku.lotro.logic.effects;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.GameUtils;
import com.gempukku.lotro.logic.timing.AbstractSuccessfulEffect;
import com.gempukku.lotro.logic.timing.Effect;
import com.gempukku.lotro.logic.timing.EffectResult;
import com.gempukku.lotro.logic.timing.results.OverwhelmSkirmishResult;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class OverwhelmedEffect extends AbstractSuccessfulEffect {
private List<PhysicalCard> _winners;
private List<PhysicalCard> _losers;
public OverwhelmedEffect(List<PhysicalCard> winners, List<PhysicalCard> losers) {
_winners = winners;
_losers = losers;
}
@Override
public Effect.Type getType() {
return null;
}
@Override
public String getText(LotroGame game) {
return getAppendedNames(_losers) + " " + GameUtils.be(_losers) + " overwhelmed in skirmish";
}
@Override
public Collection<? extends EffectResult> playEffect(LotroGame game) {
game.getGameState().sendMessage("Skirmish finishes with an overwhelm");
return Collections.singleton(new OverwhelmSkirmishResult(_winners, _losers));
}
}

View File

@@ -1,38 +0,0 @@
package com.gempukku.lotro.logic.effects;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.timing.AbstractSuccessfulEffect;
import com.gempukku.lotro.logic.timing.Effect;
import com.gempukku.lotro.logic.timing.EffectResult;
import com.gempukku.lotro.logic.timing.results.NormalSkirmishResult;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class SkirmishResolvedEffect extends AbstractSuccessfulEffect {
private List<PhysicalCard> _winners;
private List<PhysicalCard> _losers;
public SkirmishResolvedEffect(List<PhysicalCard> winners, List<PhysicalCard> losers) {
_winners = winners;
_losers = losers;
}
@Override
public Effect.Type getType() {
return null;
}
@Override
public String getText(LotroGame game) {
return getAppendedNames(_winners) + " won skirmish";
}
@Override
public Collection<? extends EffectResult> playEffect(LotroGame game) {
game.getGameState().sendMessage("Skirmish finishes with a normal win");
return Collections.singleton(new NormalSkirmishResult(_winners, _losers));
}
}

View File

@@ -4,6 +4,7 @@
- "They Stole It" now always wounds the character in skirmish against Gollum, not only when the companion is wounded.
- "Morgul Blade" now allows to transfer the Blade Tip from support zone and discard to the character skirmishing
the bearer.
- "Hosts of the Last Alliance" now discards itself upon use.
<b>10 Nov. 2011</b>
- Added set 07 (Return of the King).