mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
fix test failure
This commit is contained in:
parent
d8e3233cde
commit
fb11a59099
2 changed files with 18 additions and 20 deletions
|
|
@ -3503,7 +3503,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
* @param ability The ability to pay for.
|
||||
* @param availableMana The available mana.
|
||||
* @param game The game to calculate this for.
|
||||
* @return Boolean. True if the minimum can be paid, false otherwise.
|
||||
* @return Boolean. True if the minimum can be paid, false otherwise.
|
||||
*/
|
||||
protected boolean canPayMinimumManaCost(ActivatedAbility ability, ManaOptions availableMana, Game game) {
|
||||
ManaOptions abilityOptions = ability.getMinimumCostToActivate(playerId, game); // All possible combinations of mana costs
|
||||
|
|
@ -3604,7 +3604,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
* @param availableMana The mana available for payments.
|
||||
* @param ability The ability to play it by.
|
||||
* @param game The game to check for.
|
||||
* @return Boolean, true if the card can be played by *any* of the available alternative costs, false otherwise.
|
||||
* @return Boolean, true if the card can be played by *any* of the available alternative costs, false otherwise.
|
||||
*/
|
||||
protected boolean canPlayCardByAlternateCost(Card sourceObject, ManaOptions availableMana, Ability ability, Game game) {
|
||||
// TODO: Why is the "sourceObject instanceof Permanent" in there?
|
||||
|
|
@ -5015,7 +5015,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
+ " to PUT on the BOTTOM of your library (Scry)"));
|
||||
chooseTarget(Outcome.Benefit, cards, target, source, game);
|
||||
putCardsOnBottomOfLibrary(new CardsImpl(target.getTargets()), game, source, true);
|
||||
cards.removeAll(target.getTargets());
|
||||
cards.retainZone(Zone.LIBRARY, game);
|
||||
putCardsOnTopOfLibrary(cards, game, source, true);
|
||||
}
|
||||
game.fireEvent(new GameEvent(GameEvent.EventType.SCRIED, getId(), source, getId(), event.getAmount(), true));
|
||||
|
|
@ -5033,10 +5033,11 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
cards.addAll(getLibrary().getTopCards(game, event.getAmount()));
|
||||
if (!cards.isEmpty()) {
|
||||
TargetCard target = new TargetCard(0, cards.size(), Zone.LIBRARY,
|
||||
new FilterCard("cards to PUT into your GRAVEYARD (Surveil)"));
|
||||
new FilterCard("card " + (cards.size() == 1 ? "" : "s")
|
||||
+ " to PUT into your GRAVEYARD (Surveil)"));
|
||||
chooseTarget(Outcome.Benefit, cards, target, source, game);
|
||||
moveCards(new CardsImpl(target.getTargets()), Zone.GRAVEYARD, source, game);
|
||||
cards.removeAll(target.getTargets());
|
||||
cards.retainZone(Zone.LIBRARY, game);
|
||||
putCardsOnTopOfLibrary(cards, game, source, true);
|
||||
}
|
||||
game.fireEvent(new GameEvent(GameEvent.EventType.SURVEILED, getId(), source, getId(), event.getAmount(), true));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue