use of mage.game.permanent.token.ZombieDecayedToken in project mage by magefree.
the class TaintedAdversaryEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Integer timesPaid = (Integer) getValue("timesPaid");
if (timesPaid == null || timesPaid <= 0) {
return false;
}
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(timesPaid)), false, staticText);
ability.addEffect(new CreateTokenEffect(new ZombieDecayedToken(), 2 * timesPaid));
game.fireReflexiveTriggeredAbility(ability, source);
return true;
}
use of mage.game.permanent.token.ZombieDecayedToken in project mage by magefree.
the class DiregrafHordeEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
if (!new ZombieDecayedToken().putOntoBattlefield(2, game, source, source.getControllerId())) {
return false;
}
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(new ExileTargetEffect(), false, "exile up to two target cards from graveyards");
ability.addTarget(new TargetCardInGraveyard(0, 2));
game.fireReflexiveTriggeredAbility(ability, source);
return true;
}
Aggregations