diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/lose/LoseAbilityTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/lose/LoseAbilityTest.java index 942eed0e79b..2288bd625f1 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/lose/LoseAbilityTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/lose/LoseAbilityTest.java @@ -74,7 +74,7 @@ public class LoseAbilityTest extends CardTestPlayerBase { @Test public void testMultiGainVsLoseAbility() { addCard(Constants.Zone.BATTLEFIELD, playerA, "Air Elemental"); - addCard(Constants.Zone.BATTLEFIELD, playerA, "Forest", 5); + addCard(Constants.Zone.BATTLEFIELD, playerA, "Forest", 10); addCard(Constants.Zone.HAND, playerA, "Grounded"); addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 10); addCard(Constants.Zone.HAND, playerA, "Drake Umbra", 2); @@ -83,7 +83,7 @@ public class LoseAbilityTest extends CardTestPlayerBase { castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Drake Umbra", "Air Elemental"); castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Grounded", "Air Elemental"); - setStopAt(2, Constants.PhaseStep.END_TURN); + setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT); execute(); assertLife(playerA, 20); @@ -92,7 +92,7 @@ public class LoseAbilityTest extends CardTestPlayerBase { Permanent airElemental = getPermanent("Air Elemental", playerA.getId()); Assert.assertNotNull(airElemental); - Assert.assertTrue(airElemental.getAttachments().size() == 3); + Assert.assertEquals(3, airElemental.getAttachments().size()); // should NOT have flying Assert.assertFalse(airElemental.getAbilities().contains(FlyingAbility.getInstance())); } diff --git a/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java b/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java index 6bd0034ac47..c85cae2a14e 100644 --- a/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java +++ b/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java @@ -70,8 +70,9 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl