mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
[ZNR] fixed Leyline Tyrant not prompting to pay cost (#7046)
This commit is contained in:
parent
1893a435b3
commit
d8732651c4
1 changed files with 12 additions and 2 deletions
|
@ -114,8 +114,18 @@ class LeylineTyrantDamageEffect extends OneShotEffect {
|
|||
0, player.getManaPool().getRed(),
|
||||
"Announce the value for {X}", game, source
|
||||
);
|
||||
ManaCosts cost = new ManaCostsImpl<>("{" + costX + "}");
|
||||
if (!cost.pay(source, game, source.getSourceId(), source.getControllerId(), false, null)) {
|
||||
String manaString;
|
||||
if (costX == 0) {
|
||||
manaString = "{0}";
|
||||
} else {
|
||||
manaString = "";
|
||||
for (int i = 0; i < costX; i++) {
|
||||
manaString += "{R}";
|
||||
}
|
||||
}
|
||||
ManaCosts cost = new ManaCostsImpl(manaString);
|
||||
cost.clearPaid();
|
||||
if (!cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)) {
|
||||
return false;
|
||||
}
|
||||
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(
|
||||
|
|
Loading…
Reference in a new issue