use of mage.abilities.effects.common.continuous.SwitchPowerToughnessTargetEffect in project mage by magefree.
the class InventTarget method apply.
@Override
public boolean apply(Game game, Ability source) {
for (UUID targetId : targetPointer.getTargets(game, source)) {
ContinuousEffect effect = new SwitchPowerToughnessTargetEffect(Duration.EndOfTurn);
effect.setTargetPointer(new FixedTarget(targetId, game));
game.addEffect(effect, source);
}
return true;
}
Aggregations