god devotion problem
Posted: 05 Nov 2016, 14:35
Any ideas as to why this card wouldn't be a creature when you have devotion greater than 7?
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="CREATURE_NM1_131469" />
<CARDNAME text="CREATURE" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Creature]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="131469" />
<ARTID value="CREATURE" />
<ARTIST name="default" />
<CASTING_COST cost="{1}{G}{R}{W}" />
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Enchantment" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="God" />
<EXPANSION value="DPI" />
<RARITY metaname="M" />
<POWER value="6" />
<TOUGHNESS value="5" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Indestructible]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_INDESTRUCTIBLE" />
</STATIC_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[As long as your devotion to green, red, and white is less than eight, Creature isn’t a creature.]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION layer="4">
if S_GetNumOfDevotion(EffectController(), COLOUR_GREEN, COLOUR_RED, COLOUR_WHITE) < 8 then
local characteristics = EffectSource():GetCurrentCharacteristics()
local card_type = characteristics:CardType_GetWritable()
local sub_type = characteristics:SubType_GetWritable()
local current_type = {}
for i = 0,7 do
current_type[i] = EffectSource():GetCardType():Test(i)
end
sub_type:ClearAllOfType( CARD_TYPE_CREATURE )
card_type:Clear()
for i = 0,7 do
if i ~= 1 and current_type[i] then
card_type:Add(i)
end
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{G}: Put a +1/+1 counter on target creature you control. That creature gains trample until end of turn. Activate this ability only any time you could cast a sorcery.]]></LOCALISED_TEXT>
<COST mana_cost="{2}{G}" type="Mana" />
<AVAILABILITY sorcery_time="1" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_PLUS1_PLUS1_COUNTERS" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add(FE_CONTROLLER, OP_IS, EffectController() )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:AddCounters( MTG():PlusOnePlusOneCounters(), 1)
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_TRAMPLE, 1 )
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<SFX text="CASTER_BUFF_PLAY" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{R}: Put a +1/+1 counter on target creature you control. That creature gains haste until end of turn. Activate this ability only any time you could cast a sorcery.]]></LOCALISED_TEXT>
<COST mana_cost="{2}{R}" type="Mana" />
<AVAILABILITY sorcery_time="1" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_PLUS1_PLUS1_COUNTERS" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add(FE_CONTROLLER, OP_IS, EffectController() )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:AddCounters( MTG():PlusOnePlusOneCounters(), 1)
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_HASTE, 1 )
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<SFX text="CASTER_BUFF_PLAY" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{W}: Put a +1/+1 counter on target creature you control. That creature gains vigilance until end of turn. Activate this ability only any time you could cast a sorcery.]]></LOCALISED_TEXT>
<COST mana_cost="{2}{W}" type="Mana" />
<AVAILABILITY sorcery_time="1" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_PLUS1_PLUS1_COUNTERS" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add(FE_CONTROLLER, OP_IS, EffectController() )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:AddCounters( MTG():PlusOnePlusOneCounters(), 1)
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_VIGILANCE, 1 )
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<SFX text="CASTER_BUFF_PLAY" />
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
</ACTIVATED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_8" body="MORE_INFO_BADGE_BODY_8" zone="ZONE_ANY" />
<HELP title="MORE_INFO_TITLE_DEVOTION" body="MORE_INFO_BODY_DEVOTION" zone="ZONE_ANY" />
<SFX text="COMBAT_FLAME_LARGE_ATTACK | COMBAT_WHITE_MAGIC_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_FLAME_SMALL_ATTACK | COMBAT_WHITE_MAGIC_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<AI_BASE_SCORE score="750" zone="ZONE_BATTLEFIELD" />
<AUTHOR><![CDATA[NivMizzet1]]></AUTHOR>
<EDITORS><![CDATA[NivMizzet1]]></EDITORS>
<DATE><![CDATA[06-11-16]]></DATE>
</CARD_V2>