Welcome to the fold bug fix and tests

This commit is contained in:
drmDev 2016-03-28 20:20:19 -04:00
parent d7cf71a0ec
commit 4a29ae762c
2 changed files with 50 additions and 1 deletions

View file

@ -96,7 +96,7 @@ class WelcomeToTheFoldEffect extends GainControlTargetEffect {
maxToughness = source.getManaCostsToPay().getX();
}
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
if (permanent != null && permanent.getToughness().getValue() <= maxToughness) {
if (permanent != null && permanent.getToughness().getValue() > maxToughness) {
this.discard();
return;
}