mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
move keyword choice to PumpEffect from GenericChoice (#1626)
* move keyword choice to PumpEffect from GenericChoice * fix silverquill_pledgemage.txt
This commit is contained in:
@@ -47,6 +47,7 @@ import forge.gamesimulationtests.util.player.PlayerSpecificationHandler;
|
||||
import forge.gamesimulationtests.util.playeractions.*;
|
||||
import forge.item.PaperCard;
|
||||
import forge.player.HumanPlay;
|
||||
import forge.util.Aggregates;
|
||||
import forge.util.ITriggerEvent;
|
||||
import forge.util.MyRandom;
|
||||
import forge.util.collect.FCollectionView;
|
||||
@@ -510,6 +511,14 @@ public class PlayerControllerForTests extends PlayerController {
|
||||
return Iterables.getFirst(options, CounterType.get(CounterEnumType.P1P1));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String chooseKeywordForPump(final List<String> options, final SpellAbility sa, final String prompt) {
|
||||
if (options.size() <= 1) {
|
||||
return Iterables.getFirst(options, null);
|
||||
}
|
||||
return Aggregates.random(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean confirmPayment(CostPart costPart, String string, SpellAbility ability) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user