Problem with unless costs
 Posted: 08 Jun 2011, 14:56
Posted: 08 Jun 2011, 14:56I just noticed that the unless cost has a problem:
When the human has to pay the cost (it doesn't matter who is the controller) for a spell (abilities work fine), the spell on the stack vanishes and won't resolve no matter if the cost is paid.
The problem lies here:
I'm pretty sure the problem is related to the "when you cast" triggers killing the original spell on the stack (Ulamog, the Infinite Gyre), which is also only a problem for the human player if there is an input required (Emrakul, the Aeons Torn works fine and both work for the AI).
			When the human has to pay the cost (it doesn't matter who is the controller) for a spell (abilities work fine), the spell on the stack vanishes and won't resolve no matter if the cost is paid.
The problem lies here:
- Code: Select all
- GameActionUtil.payManaDuringAbilityResolve(source + "\r\n", ability.getManaCost(), Command.Blank, unpaidCommand);
I'm pretty sure the problem is related to the "when you cast" triggers killing the original spell on the stack (Ulamog, the Infinite Gyre), which is also only a problem for the human player if there is an input required (Emrakul, the Aeons Torn works fine and both work for the AI).