mirror of
https://github.com/correl/mage.git
synced 2024-11-26 19:19:54 +00:00
* Jhoira's Toolbox - Fixed that the activated ability was missing.
This commit is contained in:
parent
1aea4b3b36
commit
d310276be1
1 changed files with 6 additions and 6 deletions
|
@ -28,15 +28,14 @@
|
||||||
package mage.sets.urzaslegacy;
|
package mage.sets.urzaslegacy;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.constants.Rarity;
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.abilities.effects.common.RegenerateTargetEffect;
|
import mage.abilities.effects.common.RegenerateTargetEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Rarity;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
|
@ -48,10 +47,10 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
*/
|
*/
|
||||||
public class JhoirasToolbox extends CardImpl {
|
public class JhoirasToolbox extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filer = new FilterCreaturePermanent("artifact creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("artifact creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filer.add(new CardTypePredicate(CardType.ARTIFACT));
|
filter.add(new CardTypePredicate(CardType.ARTIFACT));
|
||||||
}
|
}
|
||||||
|
|
||||||
public JhoirasToolbox(UUID ownerId) {
|
public JhoirasToolbox(UUID ownerId) {
|
||||||
|
@ -64,7 +63,8 @@ public class JhoirasToolbox extends CardImpl {
|
||||||
|
|
||||||
// {2}: Regenerate target artifact creature.
|
// {2}: Regenerate target artifact creature.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{2}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{2}"));
|
||||||
ability.addTarget(new TargetCreaturePermanent(filer));
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
public JhoirasToolbox(final JhoirasToolbox card) {
|
public JhoirasToolbox(final JhoirasToolbox card) {
|
||||||
|
|
Loading…
Reference in a new issue