[CLB] Implemented Javelin of Lightning

This commit is contained in:
Evan Kranzler 2022-05-30 09:51:48 -04:00
parent 0855832a9f
commit 3350c5d8d8
21 changed files with 149 additions and 191 deletions

View file

@ -0,0 +1,31 @@
package mage.abilities.common;
import mage.abilities.effects.common.AttachEffect;
import mage.constants.Outcome;
import mage.filter.FilterPermanent;
import mage.filter.StaticFilters;
import mage.target.TargetPermanent;
/**
* @author TheElk801
*/
public class EntersBattlefieldAttachToTarget extends EntersBattlefieldTriggeredAbility {
public EntersBattlefieldAttachToTarget() {
this(StaticFilters.FILTER_CONTROLLED_CREATURE);
}
public EntersBattlefieldAttachToTarget(FilterPermanent filter) {
super(new AttachEffect(Outcome.BoostCreature, "attach it to target" + filter.getMessage()));
this.addTarget(new TargetPermanent(filter));
}
private EntersBattlefieldAttachToTarget(final EntersBattlefieldAttachToTarget ability) {
super(ability);
}
@Override
public EntersBattlefieldAttachToTarget copy() {
return new EntersBattlefieldAttachToTarget(this);
}
}