Enchanted Evening (couple of bugs)
I'm working on a new deck based around Enchanted Evening. My code is working pretty good with a couple of issues:
1. The card type text is replaced with COMPOUND_BASIC_TYPE_LAND(Creature/Artifact)_ENCHANTMENT. I'd rather it say something like "Land Enchantment" etc.
2. If I click on any creature, the game freezes. I can hit escape, exit from the menu, but I cannot continue the game. Here is the code I am using:
1. The card type text is replaced with COMPOUND_BASIC_TYPE_LAND(Creature/Artifact)_ENCHANTMENT. I'd rather it say something like "Land Enchantment" etc.
2. If I click on any creature, the game freezes. I can hit escape, exit from the menu, but I cannot continue the game. Here is the code I am using:
- Code: Select all
<FILTER>
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 or
FilteredCard():GetCardType():Test( CARD_TYPE_LAND ) ~= 0 or
FilteredCard():GetCardType():Test( CARD_TYPE_ARTIFACT ) ~= 0) and
(filteredCard ~= Object())
</FILTER>
<CONTINUOUS_ACTION layer="7C">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
if characteristics ~= nil then
characteristics:CardType_GetWritable(FilteredCard()):Add( CARD_TYPE_ENCHANTMENT, FilteredCard() )
end
end
</CONTINUOUS_ACTION>