Fixes #3492 Kamahal grants creatures, not all permanents trample

This commit is contained in:
Derek Monturo 2017-06-11 08:59:52 -04:00
parent 5cfb496899
commit 1ecf197732

View file

@ -27,6 +27,7 @@
*/
package mage.cards.k;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
@ -40,11 +41,10 @@ import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SuperType;
import mage.constants.Zone;
import mage.filter.StaticFilters;
import mage.game.permanent.token.Token;
import mage.target.common.TargetLandPermanent;
import java.util.UUID;
/**
*
* @author Backfir3
@ -52,6 +52,7 @@ import java.util.UUID;
public class KamahlFistOfKrosa extends CardImpl {
public KamahlFistOfKrosa(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}{G}");
addSuperType(SuperType.LEGENDARY);
this.subtype.add("Human");
@ -60,7 +61,7 @@ public class KamahlFistOfKrosa extends CardImpl {
this.power = new MageInt(4);
this.toughness = new MageInt(3);
// {G}: Target land becomes a 1/1 creature until end of turn. It's still a land.
// {G}: Target land becomes a 1/1 creature until end of turn. It's still a land.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BecomesCreatureTargetEffect(new KamahlFistOfKrosaLandToken(), false, true, Duration.EndOfTurn),
new ManaCostsImpl("{G}"));
@ -71,7 +72,7 @@ public class KamahlFistOfKrosa extends CardImpl {
SimpleActivatedAbility boostAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostControlledEffect(3, 3, Duration.EndOfTurn),
new ManaCostsImpl("{2}{G}{G}{G}"));
boostAbility.addEffect(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn));
boostAbility.addEffect(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES));
this.addAbility(boostAbility);
}