Search in sources :

Example 1 with SwitchPowerToughnessTargetEffect

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;
}
Also used : FixedTarget(mage.target.targetpointer.FixedTarget) SwitchPowerToughnessTargetEffect(mage.abilities.effects.common.continuous.SwitchPowerToughnessTargetEffect) ContinuousEffect(mage.abilities.effects.ContinuousEffect) UUID(java.util.UUID)

Aggregations

UUID (java.util.UUID)1 ContinuousEffect (mage.abilities.effects.ContinuousEffect)1 SwitchPowerToughnessTargetEffect (mage.abilities.effects.common.continuous.SwitchPowerToughnessTargetEffect)1 FixedTarget (mage.target.targetpointer.FixedTarget)1