mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Update the cheat testing code
The new Zone change code is more strict so the cheat code needs to trick it.
This commit is contained in:
parent
ac6a289275
commit
d53f751711
1 changed files with 4 additions and 1 deletions
|
@ -125,8 +125,11 @@ public class SystemUtil {
|
||||||
* @param card Card to put to player's hand
|
* @param card Card to put to player's hand
|
||||||
*/
|
*/
|
||||||
private static void swapWithAnyCard(Game game, Player player, Card card, Zone zone) {
|
private static void swapWithAnyCard(Game game, Player player, Card card, Zone zone) {
|
||||||
|
// Put the card in Exile to start. Otherwise the game doesn't know where to remove the card from.
|
||||||
|
game.getExile().getPermanentExile().add(card);
|
||||||
|
game.setZone(card.getId(), Zone.EXILED);
|
||||||
if (zone.equals(Zone.BATTLEFIELD)) {
|
if (zone.equals(Zone.BATTLEFIELD)) {
|
||||||
card.putOntoBattlefield(game, Zone.OUTSIDE, null, player.getId());
|
card.putOntoBattlefield(game, Zone.EXILED, null, player.getId());
|
||||||
} else if (zone.equals(Zone.LIBRARY)) {
|
} else if (zone.equals(Zone.LIBRARY)) {
|
||||||
card.setZone(Zone.LIBRARY, game);
|
card.setZone(Zone.LIBRARY, game);
|
||||||
player.getLibrary().putOnTop(card, game);
|
player.getLibrary().putOnTop(card, game);
|
||||||
|
|
Loading…
Reference in a new issue