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; package mage.cards.k;
import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.costs.mana.ManaCostsImpl;
@ -40,11 +41,10 @@ import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.SuperType; import mage.constants.SuperType;
import mage.constants.Zone; import mage.constants.Zone;
import mage.filter.StaticFilters;
import mage.game.permanent.token.Token; import mage.game.permanent.token.Token;
import mage.target.common.TargetLandPermanent; import mage.target.common.TargetLandPermanent;
import java.util.UUID;
/** /**
* *
* @author Backfir3 * @author Backfir3
@ -52,6 +52,7 @@ import java.util.UUID;
public class KamahlFistOfKrosa extends CardImpl { public class KamahlFistOfKrosa extends CardImpl {
public KamahlFistOfKrosa(UUID ownerId, CardSetInfo setInfo) { public KamahlFistOfKrosa(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}{G}"); super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}{G}");
addSuperType(SuperType.LEGENDARY); addSuperType(SuperType.LEGENDARY);
this.subtype.add("Human"); this.subtype.add("Human");
@ -71,7 +72,7 @@ public class KamahlFistOfKrosa extends CardImpl {
SimpleActivatedAbility boostAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, SimpleActivatedAbility boostAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostControlledEffect(3, 3, Duration.EndOfTurn), new BoostControlledEffect(3, 3, Duration.EndOfTurn),
new ManaCostsImpl("{2}{G}{G}{G}")); 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); this.addAbility(boostAbility);
} }