From 0c747a1d41a5075e7e6c84747b0b2f7b5de52757 Mon Sep 17 00:00:00 2001 From: drmDev Date: Mon, 4 Jul 2016 10:08:30 -0400 Subject: [PATCH] adjusted default values for power and toughness --- .../common/PutTokenOntoBattlefieldCopyTargetEffect.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/PutTokenOntoBattlefieldCopyTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/PutTokenOntoBattlefieldCopyTargetEffect.java index 27150755bd..e0547d5d77 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/PutTokenOntoBattlefieldCopyTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/PutTokenOntoBattlefieldCopyTargetEffect.java @@ -75,8 +75,8 @@ public class PutTokenOntoBattlefieldCopyTargetEffect extends OneShotEffect { this.number = 1; this.additionalSubType = null; this.attackedPlayer = null; - this.tokenPower = 0; - this.tokenToughness = 0; + this.tokenPower = Integer.MIN_VALUE; + this.tokenToughness = Integer.MIN_VALUE; this.gainsFlying = false; } @@ -192,8 +192,10 @@ public class PutTokenOntoBattlefieldCopyTargetEffect extends OneShotEffect { if (gainsFlying) { token.addAbility(FlyingAbility.getInstance()); } - if (tokenPower != 0 || tokenToughness != 0) { + if (tokenPower != Integer.MIN_VALUE) { token.setPower(tokenPower); + } + if (tokenToughness != Integer.MIN_VALUE){ token.setToughness(tokenToughness); } if (additionalSubType != null && !token.getSubtype().contains(additionalSubType)) {