use of mage.abilities.effects.common.FightTargetsEffect in project mage by magefree.
the class SavageSwipeEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent == null) {
return false;
}
if (permanent.getPower().getValue() == 2) {
ContinuousEffect effect = new BoostTargetEffect(2, 2, Duration.EndOfTurn);
effect.setTargetPointer(new FixedTarget(permanent, game));
game.addEffect(effect, source);
game.getState().processAction(game);
}
return new FightTargetsEffect().apply(game, source);
}
use of mage.abilities.effects.common.FightTargetsEffect in project mage by magefree.
the class MagusOfTheArenaEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Permanent creature = game.getPermanent(source.getFirstTarget());
if (creature != null) {
creature.tap(source, game);
}
creature = game.getPermanent(source.getTargets().get(1).getFirstTarget());
if (creature != null) {
creature.tap(source, game);
}
return new FightTargetsEffect().apply(game, source);
}
use of mage.abilities.effects.common.FightTargetsEffect in project mage by magefree.
the class ArenaEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Permanent creature = game.getPermanent(source.getFirstTarget());
if (creature != null) {
creature.tap(source, game);
}
creature = game.getPermanent(source.getTargets().get(1).getFirstTarget());
if (creature != null) {
creature.tap(source, game);
}
return new FightTargetsEffect().apply(game, source);
}
Aggregations