-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package mage.cards.g; | ||
|
||
import mage.MageInt; | ||
import mage.abilities.common.EntersBattlefieldTriggeredAbility; | ||
import mage.abilities.effects.common.CreateTokenEffect; | ||
import mage.abilities.keyword.LifelinkAbility; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.SubType; | ||
import mage.game.permanent.token.Knight33Token; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class GuardedHeir extends CardImpl { | ||
|
||
public GuardedHeir(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{W}"); | ||
|
||
this.subtype.add(SubType.HUMAN); | ||
this.subtype.add(SubType.NOBLE); | ||
this.power = new MageInt(1); | ||
this.toughness = new MageInt(1); | ||
|
||
// Lifelink | ||
this.addAbility(LifelinkAbility.getInstance()); | ||
|
||
// When this creature enters, create two 3/3 white Knight creature tokens. | ||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new Knight33Token(), 2))); | ||
} | ||
|
||
private GuardedHeir(final GuardedHeir card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public GuardedHeir copy() { | ||
return new GuardedHeir(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Mage/src/main/java/mage/game/permanent/token/Knight33Token.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package mage.game.permanent.token; | ||
|
||
import mage.MageInt; | ||
import mage.constants.CardType; | ||
import mage.constants.SubType; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class Knight33Token extends TokenImpl { | ||
|
||
public Knight33Token() { | ||
super("Knight Token", "3/3 white Knight creature token"); | ||
|
||
cardType.add(CardType.CREATURE); | ||
color.setWhite(true); | ||
subtype.add(SubType.KNIGHT); | ||
power = new MageInt(3); | ||
toughness = new MageInt(3); | ||
} | ||
|
||
private Knight33Token(final Knight33Token token) { | ||
super(token); | ||
} | ||
|
||
public Knight33Token copy() { | ||
return new Knight33Token(this); | ||
} | ||
} |