use of mage.abilities.effects.common.continuous.BoostEquippedEffect in project mage by magefree.
the class ArterialAlchemyEffect method apply.
@Override
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {
switch(layer) {
case TypeChangingEffects_4:
permanent.addSubType(game, SubType.EQUIPMENT);
break;
case AbilityAddingRemovingEffects_6:
permanent.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(2, 0)), source.getSourceId(), game);
permanent.addAbility(new EquipAbility(2), source.getSourceId(), game);
break;
}
}
return true;
}
Aggregations