forked from External/mage
fix Time Out & Quarry Colossus being off by one
This commit is contained in:
parent
bc869097e9
commit
7ec64639bd
2 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package mage.cards.q;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
|
|
@ -16,8 +15,9 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public final class QuarryColossus extends CardImpl {
|
||||
|
|
@ -72,7 +72,7 @@ class QuarryColossusReturnLibraryEffect extends OneShotEffect {
|
|||
if (owner != null) {
|
||||
int plains = game.getBattlefield().countAll(new FilterPermanent(
|
||||
SubType.PLAINS, "Plains you control"), source.getControllerId(), game);
|
||||
controller.putCardOnTopXOfLibrary(permanent, game, source, plains, true);
|
||||
controller.putCardOnTopXOfLibrary(permanent, game, source, plains + 1, true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
package mage.cards.t;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
|
@ -15,8 +14,9 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class TimeOut extends CardImpl {
|
||||
|
|
@ -73,7 +73,7 @@ class TimeOutEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
int amount = controller.rollDice(outcome, source, game, 6);
|
||||
controller.putCardOnTopXOfLibrary(permanent, game, source, amount, true);
|
||||
controller.putCardOnTopXOfLibrary(permanent, game, source, amount + 1, true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue