* 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:
LevelX2 2015-07-12 11:08:33 +02:00
parent 6f2a7f8c73
commit 4094fe5ecf
3 changed files with 82 additions and 2 deletions

View file

@ -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());
}
}
}