adjusted default values for power and toughness

This commit is contained in:
drmDev 2016-07-04 10:08:30 -04:00
parent 8a4a1933b1
commit 0c747a1d41

View file

@ -75,8 +75,8 @@ public class PutTokenOntoBattlefieldCopyTargetEffect extends OneShotEffect {
this.number = 1; this.number = 1;
this.additionalSubType = null; this.additionalSubType = null;
this.attackedPlayer = null; this.attackedPlayer = null;
this.tokenPower = 0; this.tokenPower = Integer.MIN_VALUE;
this.tokenToughness = 0; this.tokenToughness = Integer.MIN_VALUE;
this.gainsFlying = false; this.gainsFlying = false;
} }
@ -192,8 +192,10 @@ public class PutTokenOntoBattlefieldCopyTargetEffect extends OneShotEffect {
if (gainsFlying) { if (gainsFlying) {
token.addAbility(FlyingAbility.getInstance()); token.addAbility(FlyingAbility.getInstance());
} }
if (tokenPower != 0 || tokenToughness != 0) { if (tokenPower != Integer.MIN_VALUE) {
token.setPower(tokenPower); token.setPower(tokenPower);
}
if (tokenToughness != Integer.MIN_VALUE){
token.setToughness(tokenToughness); token.setToughness(tokenToughness);
} }
if (additionalSubType != null && !token.getSubtype().contains(additionalSubType)) { if (additionalSubType != null && !token.getSubtype().contains(additionalSubType)) {