Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Muzzio and Scuttling Doom Engine problems
Moderator: CCGHQ Admins
Muzzio and Scuttling Doom Engine problems
by volrathxp » 16 Aug 2014, 00:36
Blerg. Having some problems with Muzzio, Visionary Architect and Scuttling Doom Engine...
Currently I get a LUA error on a nil value on Muzzio, and Scuttler I'm not sure I did the evasion test right.
Currently I get a LUA error on a nil value on Muzzio, and Scuttler I'm not sure I did the evasion test right.
- Muzzio, Visionary Architect | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="MUZZIO_VISIONARY_ARCHITECT_1000382314" />
<CARDNAME text="MUZZIO_VISIONARY_ARCHITECT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[先見的設計家、ムッツィオ]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="1000382314" />
<ARTID value="1000382314" />
<ARTIST name="Volkan Baga" />
<CASTING_COST cost="{1}{U}{U}" />
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Artificer" />
<EXPANSION value="CNS" />
<RARITY metaname="M" />
<POWER value="1" />
<TOUGHNESS value="3" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{3}{U}, {T}:あなたのライブラリーの一番上からX枚のカードを見る。Xはあなたがコントロールするアーティファクトの点数で見たマナ・コストのうちで最も大きい数に等しい。あなたはその中からアーティファクト・カードを1枚公開して戦場に出してもよい。残りをあなたのライブラリーの一番下に望む順番で置く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<COST mana_cost="{3}{U}" type="Mana" />
<COST type="TapSelf" />
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target ~= nil then
local max_cmc = 0
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT)
filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
local filter_count = filter:EvaluateObjects()
if filter_count > 0 then
for i=0,filter_count-1 do
local artifact = filter:GetNthEvaluatedObject(i)
if artifact ~= nil then
local cmc = artifact:GetConvertedManaCost()
if cmc > max_cmc then
max_cmc = cmc
end
end
end
end
EffectDC():Int_Set(3, max_cmc)
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local queryDC = EffectDC():Make_Chest(1)
local player = EffectController()
local num_cards = EffectDC():Int_Get(3)
local filter = ClearFilter()
local controller = EffectController()
filter:SetZone(ZONE_LIBRARY, controller)
local max_cards = filter:CountStopAt( num_cards )
for i=0, max_cards do
local card = player:Library_GetNth(i)
if card ~= nil then
if card:GetCardType():Test(CARD_TYPE_ARTIFACT) == false and card:GetConvertedManaCost() > max_cards then
queryDC:QueryUnselect_CardPtr(i)
end
else
break
end
end
player:ChooseItemFromDC("CARD_QUERY_CHOOSE_ARTIFACT_TO_PUT_INTO_PLAY", queryDC, EffectDC():Make_Targets(0), QUERY_FLAG_MAY)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local chosen = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
if chosen ~= nil then
chosen:Reveal()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
-- Code taken from Summoning Trap: no ordering query
local queryDC = EffectDC():Get_Chest(1)
local num_cards = queryDC:Count()
for i=0,num_cards-1 do
local card = queryDC:Get_CardPtr(i)
if card ~= nil then
card:PutOnBottomOfLibrary()
end
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
- Scuttling Doom Engine | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="SCUTTLING_DOOM_ENGINE_1000383373" />
<CARDNAME text="SCUTTLING_DOOM_ENGINE" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Scuttling Doom Engine]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Machine de mort galopante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Máquina de matar rastrera]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Krabbelnde Verschrottungsmaschine]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Macchina Devastatrice Sferragliante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[小走り破滅エンジン]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[덜컥거리는 파멸 엔진]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Стремительная Машина Смерти]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Máquina da Destruição Ambulante]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="1000383373" />
<ARTID value="1000383373" />
<ARTIST name="Filip Burburan" />
<CASTING_COST cost="{6}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[A masterwork of spite, inspired by madness.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Un chef-d’œuvre de malveillance inspiré par la démence.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Una obra maestra del desprecio inspirada por la demencia.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ein Meisterwerk der Tücke, durch Wahnsinn inspiriert.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Un capolavoro di odio, ispirato dalla follia.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[狂気の発想、悪意の傑作。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[광기로부터 영감을 얻은 악의로 가득한 걸작.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Шедевр злобы, вдохновленный безумием.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Uma obra-prima do ódio, inspirada pela loucura.]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Artifact" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Construct" />
<EXPANSION value="M15" />
<RARITY metaname="R" />
<POWER value="6" />
<TOUGHNESS value="6" />
<TRIGGERED_ABILITY replacement_effect="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Scuttling Doom Engine can’t be blocked by creatures with power 2 or less.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[La Machine de mort galopante ne peut pas être bloquée par des créatures avec une force inférieure ou égale à 2.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[La Máquina de matar rastrera no puede ser bloqueada por criaturas con fuerza de 2 o menos.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die Krabbelnde Verschrottungsmaschine kann von Kreaturen mit Stärke 2 oder weniger nicht geblockt werden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[La Macchina Devastatrice Sferragliante non può essere bloccata da creature con forza pari o inferiore a 2.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[小走り破滅エンジンは、パワーが2以下のクリーチャーによってはブロックされない。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[덜컥거리는 파멸 엔진은 공격력이 2 이하인 생물에게 방어당할 수 없다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Стремительная Машина Смерти не может быть заблокирована существами с силой 2 или меньше.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Máquina da Destruição Ambulante não pode ser bloqueada por criaturas de poder menor ou igual a 2.]]></LOCALISED_TEXT>
<TRIGGER value="EVASION_TEST" pre_trigger="1">
return TriggerObject() == EffectSource() and SecondaryObject():GetCurrentCharacteristics():Power_Get() < 3
</TRIGGER>
</TRIGGERED_ABILITY>
<CONTINUOUS_ACTION layer="8">
if TriggerObject() ~= nil then
TriggerObject():GetCurrentCharacteristics():Bool_Set(CHARACTERISTIC_CANT_BE_BLOCKED, 1)
end
</CONTINUOUS_ACTION>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Scuttling Doom Engine dies, it deals 6 damage to target opponent.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand la Machine de mort galopante meurt, elle inflige 6 blessures à un adversaire ciblé.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando la Máquina de matar rastrera muera, hace 6 puntos de daño al oponente objetivo.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn die Krabbelnde Verschrottungsmaschine stirbt, fügt sie einem Gegner deiner Wahl 6 Schadenspunkte zu.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando la Macchina Devastatrice Sferragliante muore, infligge 6 danni a un avversario bersaglio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[小走り破滅エンジンが死亡したとき、対戦相手1人を対象とする。小走り破滅エンジンはそのプレイヤーに6点のダメージを与える。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[덜컥거리는 파멸 엔진이 죽을 때, 상대를 목표로 정한다. 덜컥거리는 파멸 엔진은 그 상대에게 피해 6점을 입힌다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Когда Стремительная Машина Смерти умирает, она наносит 6 повреждений целевому оппоненту.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Quando morre, Máquina da Destruição Ambulante causa 6 pontos de dano ao oponente alvo.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_BEGIN" simple_qualifier="self" to_zone="ZONE_GRAVEYARD" from_zone="ZONE_BATTLEFIELD" />
<TARGET tag="CARD_QUERY_CHOOSE_OPPONENT_DEAL_6_DAMAGE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType( FILTER_TYPE_CARDS + FILTER_TYPE_PLAYERS )
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local source = EffectSourceLKI()
local filter = ClearFilter()
local target = EffectDC():Get_Targets(0): Get_PlayerPtr(0)
if target ~= nil then
source:DealDamageTo(6, target)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<SFX text="COMBAT_CLAW_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_CLAW_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
volrathxp
Re: Muzzio and Scuttling Doom Engine problems
by gorem2k » 16 Aug 2014, 08:17
Try this for Scuttler,volrathxp wrote:Scuttler I'm not sure I did the evasion test right.
- Code: Select all
<TRIGGER value="EVASION_TEST" simple_qualifier="self" pre_trigger="1">
return SecondaryObject():GetCurrentCharacteristics():Power_Get() <= 2
- Code: Select all
<CONTINUOUS_ACTION layer="8">
if TriggerObject() ~= nil then
TriggerObject():GetCurrentCharacteristics():Bool_Set(CHARACTERISTIC_CANT_BE_BLOCKED, 1)
end
</CONTINUOUS_ACTION>
- Code: Select all
for i=0, max_cards do
local card = player:Library_GetTop()
if card ~= nil then
if card:GetCardType():Test(CARD_TYPE_ARTIFACT) == false and card:GetConvertedManaCost() > max_cards then
I have not tested any of them but I will tomorrow, unless somebody is quicker than me
Last edited by gorem2k on 16 Aug 2014, 22:30, edited 1 time in total.
Re: Muzzio and Scuttling Doom Engine problems
by volrathxp » 16 Aug 2014, 17:34
Thanks I will give those a shot.
volrathxp
Re: Muzzio and Scuttling Doom Engine problems
by gorem2k » 16 Aug 2014, 22:29
- Muzzio, Visionary Architect | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="MUZZIO_VISIONARY_ARCHITECT_1000382314" />
<CARDNAME text="MUZZIO_VISIONARY_ARCHITECT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[先見的設計家、ムッツィオ]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Muzzio, Visionary Architect]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="1000382314" />
<ARTID value="1000382314" />
<ARTIST name="Volkan Baga" />
<CASTING_COST cost="{1}{U}{U}" />
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Artificer" />
<EXPANSION value="CNS" />
<RARITY metaname="M" />
<POWER value="1" />
<TOUGHNESS value="3" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{3}{U}, {T}:あなたのライブラリーの一番上からX枚のカードを見る。Xはあなたがコントロールするアーティファクトの点数で見たマナ・コストのうちで最も大きい数に等しい。あなたはその中からアーティファクト・カードを1枚公開して戦場に出してもよい。残りをあなたのライブラリーの一番下に望む順番で置く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{3}{U}, {T}: Look at the top X cards of your library, where X is the highest converted mana cost among artifacts you control. You may reveal an artifact card from among them and put it onto the battlefield. Put the rest on the bottom of your library in any order.]]></LOCALISED_TEXT>
<COST mana_cost="{3}{U}" type="Mana" />
<COST type="TapSelf" />
<RESOLUTION_TIME_ACTION>
local player = EffectController()
if player ~= nil then
local max_cmc = -1
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
filter:Add( FE_CONTROLLER, OP_IS, player )
local num_artifacts = filter:EvaluateObjects()
if num_artifacts > 0 then
for i=0,(num_artifacts-1) do
local artifact = filter:GetNthEvaluatedObject(i)
if artifact ~= nil then
local cmc = artifact:GetConvertedManaCost()
if cmc > max_cmc then
max_cmc = cmc
end
end
end
EffectDC():Int_Set(0, max_cmc)
end
end
</RESOLUTION_TIME_ACTION>
-- choose artifacts
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local num_cards = EffectDC():Int_Get(0)
local queryDC = EffectDC():Make_Chest(1)
local filter = ClearFilter()
filter:SetZone(ZONE_LIBRARY, player)
for i=0, (num_cards-1) do
local card = player:Library_GetNth(i)
if card ~= nil then
EffectDC():Get_Chest(1):Set_CardPtr(i, card)
EffectDC():Get_Chest(1):Protect_CardPtr(i)
if card:GetCardType():Test(CARD_TYPE_ARTIFACT) == false then
queryDC:QueryUnselect_CardPtr(i)
end
end
end
player:ChooseItemFromDC("CARD_QUERY_CHOOSE_ARTIFACT_TO_PUT_ONTO_BATTLEFIELD", queryDC, EffectDC():Make_Targets(0), QUERY_FLAG_MAY)
</RESOLUTION_TIME_ACTION>
-- reveal
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:GuidedReveal( target:GetZone() , target:GetZone() )
end
</RESOLUTION_TIME_ACTION>
-- put onto battlefield
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:PutOntoBattlefield( target:GetOwner() )
end
</RESOLUTION_TIME_ACTION>
-- put the rest on bottom library
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local queryDC = EffectDC():Get_Chest(1)
if queryDC ~= nil then
local num_cards = queryDC:Count()
for i = 0, (num_cards-1) do
local card = queryDC:Get_CardPtr(i)
if card ~= nil and card:GetZone() ~= ZONE_BATTLEFIELD then
card:PutOnBottomOfLibrary()
end
end
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 26 guests