* Traproot Kami -- Fix Traproot Kami incorrectly gets power from forests on the battlefield when it should only get toughness from them.

This commit is contained in:
Quercitron 2014-07-16 16:46:36 +04:00
parent 6bc561340c
commit 725bb2d926

View file

@ -34,9 +34,7 @@ import mage.constants.Rarity;
import mage.MageInt; import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.effects.common.continious.SetToughnessSourceEffect;
import mage.abilities.effects.common.continious.BoostSourceEffect;
import mage.abilities.effects.common.continious.SetPowerToughnessSourceEffect;
import mage.abilities.keyword.DefenderAbility; import mage.abilities.keyword.DefenderAbility;
import mage.abilities.keyword.ReachAbility; import mage.abilities.keyword.ReachAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
@ -68,7 +66,7 @@ public class TraprootKami extends CardImpl {
this.addAbility(DefenderAbility.getInstance()); this.addAbility(DefenderAbility.getInstance());
this.addAbility(ReachAbility.getInstance()); this.addAbility(ReachAbility.getInstance());
// Traproot Kami's toughness is equal to the number of Forests on the battlefield. // Traproot Kami's toughness is equal to the number of Forests on the battlefield.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame))); this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame)));
} }
public TraprootKami(final TraprootKami card) { public TraprootKami(final TraprootKami card) {