Merge remote-tracking branch 'upstream/master'

This commit is contained in:
drmDev 2016-07-24 11:48:36 -04:00
commit fc06e31cda
2 changed files with 10 additions and 11 deletions

View file

@ -88,9 +88,9 @@ class PermeatingMassEffect extends OneShotEffect {
public boolean apply(Game game, Ability ability) {
Permanent copyTo = game.getPermanentOrLKIBattlefield(getTargetPointer().getFirst(game, ability));
if (copyTo != null) {
Permanent copyFrom = game.getPermanent(ability.getSourceId());
Permanent copyFrom = (Permanent) ability.getSourceObject(game);
if (copyFrom != null) {
game.copyPermanent(Duration.WhileOnBattlefield, copyFrom, copyTo.getId(), ability, new EmptyApplyToPermanent());
game.copyPermanent(Duration.Custom, copyFrom, copyTo.getId(), ability, new EmptyApplyToPermanent());
}
}
return true;

View file

@ -7,7 +7,6 @@ package org.mage.test.cards.single.emn;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.game.permanent.Permanent;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
@ -33,7 +32,7 @@ public class PermeatingMassTest extends CardTestPlayerBase {
assertLife(playerB, 20);
assertGraveyardCount(playerB, "Permeating Mass", 1);
Permanent hilly = getPermanent("Hill Giant", playerA);
assertPowerToughness(playerA, "Hill Giant", 1, 3);
assertPermanentCount(playerA, "Permeating Mass", 1);
assertPowerToughness(playerA, "Permeating Mass", 1, 3);
}
}