use of mage.abilities.effects.common.continuous.LoseAbilitySourceEffect in project mage by magefree.
the class SentryOakEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
if (game.getPermanent(source.getSourceId()) != null) {
ContinuousEffect continuousEffect = new BoostSourceEffect(2, 0, Duration.EndOfTurn);
game.addEffect(continuousEffect, source);
continuousEffect = new LoseAbilitySourceEffect(DefenderAbility.getInstance(), Duration.EndOfTurn);
game.addEffect(continuousEffect, source);
return true;
}
return false;
}
Aggregations