forked from External/mage
[CLB] Implemented Javelin of Lightning
This commit is contained in:
parent
0855832a9f
commit
3350c5d8d8
21 changed files with 149 additions and 191 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue