From 7dae1f394b8d9c3dc3830930031ad231ddab48ae Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 26 Aug 2017 18:40:20 -0400 Subject: [PATCH] Fixed bug #3497 --- .../src/mage/cards/i/IslandOfWakWak.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Mage.Sets/src/mage/cards/i/IslandOfWakWak.java b/Mage.Sets/src/mage/cards/i/IslandOfWakWak.java index 8fe76252d3f..fea3f88ec46 100644 --- a/Mage.Sets/src/mage/cards/i/IslandOfWakWak.java +++ b/Mage.Sets/src/mage/cards/i/IslandOfWakWak.java @@ -52,15 +52,15 @@ import mage.target.common.TargetCreaturePermanent; * @author anonymous */ public class IslandOfWakWak extends CardImpl { - + private static final FilterCreaturePermanent filterWithFlying = new FilterCreaturePermanent("creature with flying"); - + static { filterWithFlying.add(new AbilityPredicate(FlyingAbility.class)); } - + public IslandOfWakWak(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.LAND},""); + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); // {tap}: The power of target creature with flying becomes 0 until end of turn. Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new IslandOfWakWakEffect(), new TapSourceCost()); @@ -78,23 +78,22 @@ public class IslandOfWakWak extends CardImpl { } } - class IslandOfWakWakEffect extends OneShotEffect { - + public IslandOfWakWakEffect() { super(Outcome.Detriment); staticText = "The power of target creature with flying becomes 0 until end of turn"; } - + public IslandOfWakWakEffect(final IslandOfWakWakEffect effect) { - super(effect); + super(effect); } @Override public boolean apply(Game game, Ability source) { Permanent targetCreature = game.getPermanent(source.getFirstTarget()); if (targetCreature != null) { - int toughness = targetCreature.getToughness().getBaseValue(); + int toughness = targetCreature.getToughness().getBaseValueModified(); game.addEffect(new SetPowerToughnessTargetEffect(0, toughness, Duration.EndOfTurn), source); return true; } @@ -105,4 +104,4 @@ class IslandOfWakWakEffect extends OneShotEffect { public Effect copy() { return new IslandOfWakWakEffect(this); } -} \ No newline at end of file +}