Search in sources :

Example 1 with BecomeBlockedTargetEffect

use of mage.abilities.effects.common.BecomeBlockedTargetEffect in project mage by magefree.

the class FogPatchEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    Effect effect = new BecomeBlockedTargetEffect();
    effect.setTargetPointer(new FixedTargets(game.getBattlefield().getActivePermanents(StaticFilters.FILTER_ATTACKING_CREATURES, source.getSourceId(), game), game));
    return effect.apply(game, source);
}
Also used : BecomeBlockedTargetEffect(mage.abilities.effects.common.BecomeBlockedTargetEffect) FixedTargets(mage.target.targetpointer.FixedTargets) OneShotEffect(mage.abilities.effects.OneShotEffect) BecomeBlockedTargetEffect(mage.abilities.effects.common.BecomeBlockedTargetEffect) Effect(mage.abilities.effects.Effect)

Aggregations

Effect (mage.abilities.effects.Effect)1 OneShotEffect (mage.abilities.effects.OneShotEffect)1 BecomeBlockedTargetEffect (mage.abilities.effects.common.BecomeBlockedTargetEffect)1 FixedTargets (mage.target.targetpointer.FixedTargets)1