Search in sources :

Example 1 with SourceRemainsInZoneCondition

use of mage.abilities.condition.common.SourceRemainsInZoneCondition in project mage by magefree.

the class SowerOfTemptationGainControlEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    ConditionalContinuousEffect effect = new ConditionalContinuousEffect(new GainControlTargetEffect(Duration.Custom), new SourceRemainsInZoneCondition(Zone.BATTLEFIELD), "gain control of target creature for as long as {this} remains on the battlefield");
    game.addEffect(effect, source);
    return false;
}
Also used : SourceRemainsInZoneCondition(mage.abilities.condition.common.SourceRemainsInZoneCondition) ConditionalContinuousEffect(mage.abilities.decorator.ConditionalContinuousEffect) GainControlTargetEffect(mage.abilities.effects.common.continuous.GainControlTargetEffect)

Aggregations

SourceRemainsInZoneCondition (mage.abilities.condition.common.SourceRemainsInZoneCondition)1 ConditionalContinuousEffect (mage.abilities.decorator.ConditionalContinuousEffect)1 GainControlTargetEffect (mage.abilities.effects.common.continuous.GainControlTargetEffect)1