From 55471c9b4847fb00245ad51435ac422791cbf97a Mon Sep 17 00:00:00 2001 From: drmDev Date: Thu, 7 Apr 2016 20:04:32 -0400 Subject: [PATCH] Neckbreaker fix. typo fix --- .../src/mage/sets/shadowsoverinnistrad/NeckBreaker.java | 8 ++++++-- .../abilities/condition/common/TransformedCondition.java | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/sets/shadowsoverinnistrad/NeckBreaker.java b/Mage.Sets/src/mage/sets/shadowsoverinnistrad/NeckBreaker.java index ac4466b46a..637c4c6345 100644 --- a/Mage.Sets/src/mage/sets/shadowsoverinnistrad/NeckBreaker.java +++ b/Mage.Sets/src/mage/sets/shadowsoverinnistrad/NeckBreaker.java @@ -38,6 +38,8 @@ import mage.abilities.decorator.ConditionalContinuousEffect; import mage.abilities.decorator.ConditionalTriggeredAbility; import mage.abilities.effects.common.TransformSourceEffect; import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.TrampleAbility; import mage.abilities.keyword.TransformAbility; import mage.cards.CardImpl; import mage.constants.CardType; @@ -66,9 +68,11 @@ public class NeckBreaker extends CardImpl { this.canTransform = true; // Attacking creatures you control get +1/+0 and have trample. - this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, + SimpleStaticAbility boostAbility = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(new BoostControlledEffect(1, 0, Duration.WhileOnBattlefield, new FilterAttackingCreature()), - new TransformedCondition(false), "Attacking creatures you control get +1/+0"))); + new TransformedCondition(false), "Attacking creatures you control get +1/+0")); + boostAbility.addEffect(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.WhileOnBattlefield, new FilterAttackingCreature())); + this.addAbility(boostAbility); // At the beginning of each upkeep, if a player cast two or more spells last turn, transform Neck Breaker. TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(new TransformSourceEffect(false), TargetController.ANY, false); diff --git a/Mage/src/main/java/mage/abilities/condition/common/TransformedCondition.java b/Mage/src/main/java/mage/abilities/condition/common/TransformedCondition.java index fa1c91b3af..a49d238ce1 100644 --- a/Mage/src/main/java/mage/abilities/condition/common/TransformedCondition.java +++ b/Mage/src/main/java/mage/abilities/condition/common/TransformedCondition.java @@ -45,7 +45,7 @@ public class TransformedCondition implements Condition { } /** - * The condition checks wether a permanent is transformed or not. + * The condition checks whether a permanent is transformed or not. * * @param notCondition if true the condition is true when the permanent is not transformed * @return true if the condition is true, false if the condition is false