mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Artisan of Kozilek - Fixed that the ability correctly only triggers if the spell is cast.
This commit is contained in:
parent
a5e5351b70
commit
9c486c3abb
1 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,7 @@ import mage.constants.Rarity;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.CastSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
import mage.abilities.keyword.AnnihilatorAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -52,9 +53,11 @@ public class ArtisanOfKozilek extends CardImpl<ArtisanOfKozilek> {
|
|||
this.subtype.add("Eldrazi");
|
||||
this.power = new MageInt(10);
|
||||
this.toughness = new MageInt(9);
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
||||
// When you cast Artisan of Kozilek, you may return target creature card from your graveyard to the battlefield.
|
||||
Ability ability = new CastSourceTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), true);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
|
||||
this.addAbility(ability);
|
||||
// Annihilator 2
|
||||
this.addAbility(new AnnihilatorAbility(2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue