"Bert" now only triggers from opponent discarding

This commit is contained in:
PhallenCassidy
2017-11-18 11:01:39 -05:00
committed by GitHub
parent b722e45af1
commit 405a6d6b11

View File

@@ -60,10 +60,12 @@ public class Card31_064 extends AbstractMinion {
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.forEachDiscardedFromPlay(game, effectResult, CardType.CONDITION)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.ALLY));
return Collections.singletonList(action);
if (!discardEffect.getPerformingPlayer().equals(self.getOwner())) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.ALLY));
return Collections.singletonList(action);
}
}
return null;
}