From 8fe5bf4fbbb9e2f29292b7c3431871e476e27129 Mon Sep 17 00:00:00 2001 From: Samuel Sandeen Date: Sun, 10 Jul 2016 18:55:58 -0400 Subject: [PATCH] Update the uses of PreventAllDamageByAllPermanentsEffect to use the new name. --- Mage.Sets/src/mage/sets/gatecrash/Hindervines.java | 4 ++-- Mage.Sets/src/mage/sets/onslaught/LeeryFogbeast.java | 4 ++-- Mage.Sets/src/mage/sets/planeshift/RadiantKavu.java | 4 ++-- Mage.Sets/src/mage/sets/stronghold/ConstantMists.java | 4 ++-- Mage.Sets/src/mage/sets/timeshifted/Darkness.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Mage.Sets/src/mage/sets/gatecrash/Hindervines.java b/Mage.Sets/src/mage/sets/gatecrash/Hindervines.java index aace092ee12..3c31ca36337 100644 --- a/Mage.Sets/src/mage/sets/gatecrash/Hindervines.java +++ b/Mage.Sets/src/mage/sets/gatecrash/Hindervines.java @@ -31,7 +31,7 @@ import java.util.UUID; import mage.constants.CardType; import mage.constants.Duration; import mage.constants.Rarity; -import mage.abilities.effects.common.PreventAllDamageByAllEffect; +import mage.abilities.effects.common.PreventAllDamageByAllPermanentsEffect; import mage.cards.CardImpl; import mage.counters.CounterType; import mage.filter.common.FilterCreaturePermanent; @@ -56,7 +56,7 @@ public class Hindervines extends CardImpl { // Prevent all combat damage that would be dealt this turn by creatures with no +1/+1 counters on them. - this.getSpellAbility().addEffect(new PreventAllDamageByAllEffect(filter, Duration.EndOfTurn, true)); + this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(filter, Duration.EndOfTurn, true)); } public Hindervines(final Hindervines card) { diff --git a/Mage.Sets/src/mage/sets/onslaught/LeeryFogbeast.java b/Mage.Sets/src/mage/sets/onslaught/LeeryFogbeast.java index 9e37a65723d..0ec4e26cb20 100644 --- a/Mage.Sets/src/mage/sets/onslaught/LeeryFogbeast.java +++ b/Mage.Sets/src/mage/sets/onslaught/LeeryFogbeast.java @@ -33,7 +33,7 @@ import mage.constants.CardType; import mage.constants.Rarity; import mage.MageInt; import mage.abilities.common.BecomesBlockedTriggeredAbility; -import mage.abilities.effects.common.PreventAllDamageByAllEffect; +import mage.abilities.effects.common.PreventAllDamageByAllPermanentsEffect; import mage.cards.CardImpl; import mage.constants.Duration; @@ -52,7 +52,7 @@ public class LeeryFogbeast extends CardImpl { this.toughness = new MageInt(2); // Whenever Leery Fogbeast becomes blocked, prevent all combat damage that would be dealt this turn. - this.addAbility(new BecomesBlockedTriggeredAbility(new PreventAllDamageByAllEffect(Duration.EndOfTurn, true), false)); + this.addAbility(new BecomesBlockedTriggeredAbility(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), false)); } public LeeryFogbeast(final LeeryFogbeast card) { diff --git a/Mage.Sets/src/mage/sets/planeshift/RadiantKavu.java b/Mage.Sets/src/mage/sets/planeshift/RadiantKavu.java index e29f6f24da0..c0c4143951a 100644 --- a/Mage.Sets/src/mage/sets/planeshift/RadiantKavu.java +++ b/Mage.Sets/src/mage/sets/planeshift/RadiantKavu.java @@ -32,7 +32,7 @@ import mage.MageInt; import mage.ObjectColor; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.ManaCostsImpl; -import mage.abilities.effects.common.PreventAllDamageByAllEffect; +import mage.abilities.effects.common.PreventAllDamageByAllPermanentsEffect; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Duration; @@ -61,7 +61,7 @@ public class RadiantKavu extends CardImpl { this.toughness = new MageInt(3); // {R}{G}{W}: Prevent all combat damage blue creatures and black creatures would deal this turn. - this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, (new PreventAllDamageByAllEffect(filter, + this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, (new PreventAllDamageByAllPermanentsEffect(filter, Duration.EndOfTurn, true)), new ManaCostsImpl("{R}{G}{W}"))); } diff --git a/Mage.Sets/src/mage/sets/stronghold/ConstantMists.java b/Mage.Sets/src/mage/sets/stronghold/ConstantMists.java index a35e1777b99..564cb47da1b 100644 --- a/Mage.Sets/src/mage/sets/stronghold/ConstantMists.java +++ b/Mage.Sets/src/mage/sets/stronghold/ConstantMists.java @@ -29,7 +29,7 @@ package mage.sets.stronghold; import java.util.UUID; import mage.abilities.costs.common.SacrificeTargetCost; -import mage.abilities.effects.common.PreventAllDamageByAllEffect; +import mage.abilities.effects.common.PreventAllDamageByAllPermanentsEffect; import mage.abilities.keyword.BuybackAbility; import mage.cards.CardImpl; import mage.constants.CardType; @@ -52,7 +52,7 @@ public class ConstantMists extends CardImpl { this.addAbility(new BuybackAbility(new SacrificeTargetCost(new TargetControlledPermanent(new FilterControlledLandPermanent("a land"))))); // Prevent all combat damage that would be dealt this turn. - this.getSpellAbility().addEffect(new PreventAllDamageByAllEffect(Duration.EndOfTurn, true)); + this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true)); } public ConstantMists(final ConstantMists card) { diff --git a/Mage.Sets/src/mage/sets/timeshifted/Darkness.java b/Mage.Sets/src/mage/sets/timeshifted/Darkness.java index 66494f637a9..fbebfd7b95f 100644 --- a/Mage.Sets/src/mage/sets/timeshifted/Darkness.java +++ b/Mage.Sets/src/mage/sets/timeshifted/Darkness.java @@ -31,7 +31,7 @@ import java.util.UUID; import mage.constants.CardType; import mage.constants.Rarity; -import mage.abilities.effects.common.PreventAllDamageByAllEffect; +import mage.abilities.effects.common.PreventAllDamageByAllPermanentsEffect; import mage.cards.CardImpl; import mage.constants.Duration; @@ -47,7 +47,7 @@ public class Darkness extends CardImpl { // Prevent all combat damage that would be dealt this turn. - this.getSpellAbility().addEffect(new PreventAllDamageByAllEffect(Duration.EndOfTurn, true)); + this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true)); } public Darkness(final Darkness card) {