[fixed by Korath]Ethereal Armor+Ancestral Mask
Describe the Bug:
Memnite enchanted by both Ethereal Armor and Ancestral Mask, Enchanted Evening, and five random lands in play under my control. Memnite is only 8/8 (base 1/1, +3/+3 from Ethereal Armor seeing three enchantments, +4/+4 from Ancestral Mask seeing two enchantments other than itself) instead of getting boosts from the enchantment lands and enchantment artifact creature.
Which card did behave improperly ?
Both Ethereal Armor and Ancestral Mask, slightly differently.
Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
Planeswalking to Modern 05182013.rar on top of CirothUngol. Solo duel/testing for this savegame (first observed in challenge gauntlet).
What exactly should be the correct behavior/interaction ?
Each of the two auras should count cards that are made into enchantments by Enchanted Evening, instead of just "natural" enchantments. Thus the Memnite should be 26/26 (an additional +1/+1 from Ethereal Armor and +2/+2 from Ancestral Mask for each of the lands and for the Memnite itself).
Are any other cards possibly affected by this bug ?
None that I've found.
Hope you have better luck with the savegame than I; I haven't ever been able to reload one.
Fixed by the following patch (though the counts will be too high unless the diff I posted here, or an equivalent, is applied as well):
Memnite enchanted by both Ethereal Armor and Ancestral Mask, Enchanted Evening, and five random lands in play under my control. Memnite is only 8/8 (base 1/1, +3/+3 from Ethereal Armor seeing three enchantments, +4/+4 from Ancestral Mask seeing two enchantments other than itself) instead of getting boosts from the enchantment lands and enchantment artifact creature.
Which card did behave improperly ?
Both Ethereal Armor and Ancestral Mask, slightly differently.
Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
Planeswalking to Modern 05182013.rar on top of CirothUngol. Solo duel/testing for this savegame (first observed in challenge gauntlet).
What exactly should be the correct behavior/interaction ?
Each of the two auras should count cards that are made into enchantments by Enchanted Evening, instead of just "natural" enchantments. Thus the Memnite should be 26/26 (an additional +1/+1 from Ethereal Armor and +2/+2 from Ancestral Mask for each of the lands and for the Memnite itself).
Are any other cards possibly affected by this bug ?
None that I've found.
Hope you have better luck with the savegame than I; I haven't ever been able to reload one.
Fixed by the following patch (though the counts will be too high unless the diff I posted here, or an equivalent, is applied as well):
- Code: Select all
diff --git a/src/cards/mercadian_masques.c b/src/cards/mercadian_masques.c
index df34b89..b8c218e 100644
--- a/src/cards/mercadian_masques.c
+++ b/src/cards/mercadian_masques.c
@@ -206,11 +206,7 @@ int card_alley_grifters(int player, int card, event_t event ){
int card_ancestral_mask(int player, int card, event_t event ){
- target_definition_t td;
- default_target_definition(player, card, &td, TYPE_ENCHANTMENT);
- td.illegal_abilities = 0;
-
- int plus = 2*(target_available(player, card, &td)-1);
+ int plus = 2*(count_subtype(2, TYPE_ENCHANTMENT, -1)-1);
if( plus < 0 ){
plus = 0;
}
diff --git a/src/cards/return_to_ravnica.c b/src/cards/return_to_ravnica.c
index 69bb132..e2026a9 100644
--- a/src/cards/return_to_ravnica.c
+++ b/src/cards/return_to_ravnica.c
@@ -413,8 +413,9 @@ int card_bazaar_krovod(int player, int card, event_t event){
int card_ethereal_armor(int player, int card, event_t event){
+ int plus = count_subtype(player, TYPE_ENCHANTMENT, -1);
return generic_aura(player, card, event, player,
- count_permanents_by_type(player, card, TYPE_ENCHANTMENT), count_permanents_by_type(player, card, TYPE_ENCHANTMENT),
+ plus, plus,
KEYWORD_FIRST_STRIKE, 0, 0, 0, 0);
}