use of mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect in project mage by magefree.
the class ObuunMulDayaAncestorToken method apply.
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
if (permanent == null) {
return false;
}
game.addEffect(new BecomesCreatureTargetEffect(new ObuunMulDayaAncestorToken(permanent.getPower().getValue()), false, true, Duration.EndOfTurn), source);
return true;
}
use of mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect in project mage by magefree.
the class VastwoodAnimistElementalToken method apply.
@Override
public boolean apply(Game game, Ability source) {
int amount = new PermanentsOnBattlefieldCount(filterAllies).calculate(game, source, this);
ContinuousEffect effect = new BecomesCreatureTargetEffect(new VastwoodAnimistElementalToken(amount), false, true, Duration.EndOfTurn);
effect.setTargetPointer(targetPointer);
game.addEffect(effect, source);
return false;
}
Aggregations