use of mage.game.permanent.token.DemonToken in project mage by magefree.
the class ArchfiendsVesselEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Permanent archfiendsVessel = source.getSourcePermanentIfItStillExists(game);
if (archfiendsVessel != null) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
boolean moved = controller.moveCards(archfiendsVessel, Zone.EXILED, source, game);
if (moved) {
Token token = new DemonToken();
token.putOntoBattlefield(1, game, source, controller.getId());
}
return true;
}
}
return false;
}
Aggregations