[fixed]Chromatic Lantern v. Wastes
Describe the Bug:
Wastes can't produce colorless mana if there's a Chromatic Lantern on the bf.
Which card behaved improperly?
mana_producer()
Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
0801abee9 - (master) First round of drafts for DOM
(or drool66 head)
What exactly should be the correct behavior/interaction?
There should be a little grey ball for colorless mana in the middle of the dialog.
Are any other cards possibly affected by this bug?
All lands that can produce colorless.
---
This is technically my bug, since mana_producer()'s EVENT_ACTIVATE handler removes everything but (COLOR_TEST_ANY_COLORED | COLOR_TEST_ARTIFACT) instead of (COLOR_TEST_ANY | COLOR_TEST_ARTIFACT), but nothing's needed it until now.
PS, get_global_mana_color_addition() is a relatively expensive function and you're calling it entirely too often. Since it doesn't have any side effects,
PPS, I assume the new Chromatic Lantern is unfinished and you're aware cards that add more than one mana don't even sort of work. At least the ones I tried - Mishra's Workshop and Dwarven Ruins - don't.
PPPS, you'll find that getting mana counting right for cards that can add differing amounts of mana to be very difficult. (We already see this with Nykthos, Shrine to Nyx.) I suspect there isn't a polynomial solution, and it's why none of these cards are in Shandalar.
Wastes can't produce colorless mana if there's a Chromatic Lantern on the bf.
Which card behaved improperly?
mana_producer()
Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
0801abee9 - (master) First round of drafts for DOM
(or drool66 head)
What exactly should be the correct behavior/interaction?
There should be a little grey ball for colorless mana in the middle of the dialog.
Are any other cards possibly affected by this bug?
All lands that can produce colorless.
---
This is technically my bug, since mana_producer()'s EVENT_ACTIVATE handler removes everything but (COLOR_TEST_ANY_COLORED | COLOR_TEST_ARTIFACT) instead of (COLOR_TEST_ANY | COLOR_TEST_ARTIFACT), but nothing's needed it until now.
PS, get_global_mana_color_addition() is a relatively expensive function and you're calling it entirely too often. Since it doesn't have any side effects,
- Code: Select all
if( is_what(player, card, TYPE_LAND) && get_global_mana_color_addition(player)){
clr |= get_global_mana_color_addition(player);
}
- Code: Select all
if( is_what(player, card, TYPE_LAND)){
clr |= get_global_mana_color_addition(player);
}
PPS, I assume the new Chromatic Lantern is unfinished and you're aware cards that add more than one mana don't even sort of work. At least the ones I tried - Mishra's Workshop and Dwarven Ruins - don't.
PPPS, you'll find that getting mana counting right for cards that can add differing amounts of mana to be very difficult. (We already see this with Nykthos, Shrine to Nyx.) I suspect there isn't a polynomial solution, and it's why none of these cards are in Shandalar.
.
that's spendable only on artifacts or