mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
package mage.cards.l;
|
|
|
|
import mage.abilities.effects.common.CreateTokenEffect;
|
|
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.StaticFilters;
|
|
import mage.game.permanent.token.FoodToken;
|
|
import mage.target.common.TargetCardInGraveyard;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class LateToDinner extends CardImpl {
|
|
|
|
public LateToDinner(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}");
|
|
|
|
// Return target creature card from your graveyard to the battlefield. Create a Food token.
|
|
this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
|
this.getSpellAbility().addEffect(new CreateTokenEffect(new FoodToken()));
|
|
this.getSpellAbility().addTarget(new TargetCardInGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
|
}
|
|
|
|
private LateToDinner(final LateToDinner card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public LateToDinner copy() {
|
|
return new LateToDinner(this);
|
|
}
|
|
}
|