use of mage.game.permanent.token.SwanSongBirdToken in project mage by magefree.
the class SwanSongEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
boolean countered = false;
for (UUID targetId : targetPointer.getTargets(game, source)) {
Spell spell = game.getStack().getSpell(targetId);
if (game.getStack().counter(targetId, source, game)) {
countered = true;
}
if (spell != null) {
Token token = new SwanSongBirdToken();
token.putOntoBattlefield(1, game, source, spell.getControllerId());
}
}
return countered;
}
Aggregations