mirror of
https://github.com/magefree/mage.git
synced 2026-01-22 19:29:59 -08:00
* Fixed a problem that triggered abilities of created tokens were not removed properly if the token left has left the battlefield.
This commit is contained in:
parent
6f2a7f8c73
commit
4094fe5ecf
3 changed files with 82 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ public class PriestOfTheBloodRite extends CardImpl {
|
|||
|
||||
// When Priest of the Blood Rite enters the battlefield, put a 5/5 black Demon creature token with flying onto the battlefield.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new DemonToken())));
|
||||
|
||||
|
||||
// At the beginning of your upkeep, you lose 2 life.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new LoseLifeSourceControllerEffect(2), TargetController.YOU, false));
|
||||
}
|
||||
|
|
@ -77,6 +77,7 @@ class DemonToken extends Token {
|
|||
super("Demon", "5/5 black Demon creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add("Demon");
|
||||
setOriginalExpansionSetCode("ORI");
|
||||
|
||||
color.setBlack(true);
|
||||
power = new MageInt(5);
|
||||
|
|
@ -84,4 +85,4 @@ class DemonToken extends Token {
|
|||
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue