Fixed spotting X damage on Blood Runs Chill
This commit is contained in:
@@ -10,6 +10,8 @@ import com.gempukku.lotro.logic.effects.choose.ChooseAndExertCharactersEffect;
|
|||||||
import com.gempukku.lotro.logic.effects.choose.ChooseOpponentEffect;
|
import com.gempukku.lotro.logic.effects.choose.ChooseOpponentEffect;
|
||||||
import com.gempukku.lotro.logic.timing.PlayConditions;
|
import com.gempukku.lotro.logic.timing.PlayConditions;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set: Siege of Gondor
|
* Set: Siege of Gondor
|
||||||
* Side: Free
|
* Side: Free
|
||||||
@@ -33,9 +35,14 @@ public class Card8_003 extends AbstractEvent {
|
|||||||
final PlayEventAction action = new PlayEventAction(self);
|
final PlayEventAction action = new PlayEventAction(self);
|
||||||
action.appendCost(
|
action.appendCost(
|
||||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Race.DWARF, Keyword.DAMAGE) {
|
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Race.DWARF, Keyword.DAMAGE) {
|
||||||
|
@Override
|
||||||
|
protected void cardsToBeExertedCallback(Collection<PhysicalCard> characters) {
|
||||||
|
int count = game.getModifiersQuerying().getKeywordCount(game, characters.iterator().next(), Keyword.DAMAGE);
|
||||||
|
this.setIntToRemember(count);
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void forEachCardExertedCallback(PhysicalCard character) {
|
protected void forEachCardExertedCallback(PhysicalCard character) {
|
||||||
final int count = game.getModifiersQuerying().getKeywordCount(game, character, Keyword.DAMAGE);
|
final int count = this.getIntToRemember();
|
||||||
action.appendEffect(
|
action.appendEffect(
|
||||||
new ChooseOpponentEffect(playerId) {
|
new ChooseOpponentEffect(playerId) {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class ChooseAndExertCharactersEffect extends ChooseActiveCardsEffect {
|
|||||||
private int _times;
|
private int _times;
|
||||||
private Filterable[] _filters;
|
private Filterable[] _filters;
|
||||||
private CostToEffectAction _resultSubAction;
|
private CostToEffectAction _resultSubAction;
|
||||||
|
private int _intToRemember;
|
||||||
private boolean _forToil;
|
private boolean _forToil;
|
||||||
|
|
||||||
public ChooseAndExertCharactersEffect(Action action, String playerId, int minimum, int maximum, Filterable... filters) {
|
public ChooseAndExertCharactersEffect(Action action, String playerId, int minimum, int maximum, Filterable... filters) {
|
||||||
@@ -32,6 +32,14 @@ public class ChooseAndExertCharactersEffect extends ChooseActiveCardsEffect {
|
|||||||
_filters = filters;
|
_filters = filters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setIntToRemember(int intToRemember) {
|
||||||
|
_intToRemember = intToRemember;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getIntToRemember() {
|
||||||
|
return _intToRemember;
|
||||||
|
}
|
||||||
|
|
||||||
public void setForToil(boolean forToil) {
|
public void setForToil(boolean forToil) {
|
||||||
_forToil = forToil;
|
_forToil = forToil;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user