Re: Card Creation Request Thread
Hi all, I'm trying to do on my own mystical tutor, but nothing happens when I cast it. COULD SOMEONE TELL WHAT IS WRONG? thanks
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Search your library for an instant or sorcery card and reveal that card. Shuffle your library, then put the card on top of it.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local filter = Object():GetFilter()
local effectController = EffectController()
effectController:MarkSearchedLibrary()
filter:Clear()
filter:NotTargetted()
filter:AddSubType( CARD_TYPE_SORCERY )
filter:AddSubType( CARD_TYPE_INSTANT )
filter:AddExtra( FILTER_EXTRA_ANY_SUB_TYPE )
filter:May()
filter:SetZone( ZONE_LIBRARY )
filter:SetPlayer( effectController )
effectController:ChooseTarget( NO_VALIDATION, "CARD_QUERY_CHOOSE_INSTANT_OR_SORCERY_TO_PUT_ON_LIBRARY", EffectDC():Make_Targets(0) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
EffectController():ShuffleLibrary()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if Object():GetTargetCard() ~= nil then
Object():GetTargetCard():GuidedReveal( ZONE_LIBRARY, ZONE_LIBRARY )
Object():GetTargetCard():PutInLibrary(0)
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
</CARD_V2>