mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
Pay {0} - fixed that it doesn't work for alternative cost (related to b6a3f7edc1);
This commit is contained in:
parent
9d27f130bb
commit
b073ff8617
1 changed files with 7 additions and 0 deletions
|
|
@ -610,6 +610,13 @@ public class ManaOptions extends ArrayList<Mana> {
|
|||
* @return
|
||||
*/
|
||||
public boolean enough(Mana mana) {
|
||||
// 117.5. Some costs are represented by {0}, or are reduced to {0}. The action necessary for a player to pay
|
||||
// such a cost is the player’s acknowledgment that he or she is paying it. Even though such a cost requires
|
||||
// no resources, it’s not automatically paid.
|
||||
if (mana.count() == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (Mana avail : this) {
|
||||
if (mana.enough(avail)) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue