Advertisement
Guest User

Untitled

a guest
Nov 19th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.15 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <CARD_V2 ExportVersion="1">
  3.     <FILENAME text="EYE_OF_YAWGMOTH_CW_21392" />
  4.     <CARDNAME text="EYE_OF_YAWGMOTH" />
  5.     <TITLE>
  6.         <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  7.         <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  8.         <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  9.         <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  10.         <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  11.         <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  12.         <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  13.         <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  14.         <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  15.         <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  16.         <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Eye of Yawgmoth]]></LOCALISED_TEXT>
  17.     </TITLE>
  18.     <MULTIVERSEID value="21392" />
  19.     <ARTID value="EYE_OF_YAWGMOTH" />
  20.     <ARTIST name="DiTerlizzi" />
  21.     <CASTING_COST cost="{3}" />
  22.     <TYPE metaname="Artifact" />
  23.     <EXPANSION value="NE" />
  24.     <RARITY metaname="R" />
  25.     <ACTIVATED_ABILITY>
  26.         <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  27.         <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  28.         <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  29.         <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  30.         <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  31.         <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  32.         <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  33.         <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  34.         <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  35.         <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  36.         <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[{3}, {T}, Sacrifice a creature: Reveal a number of cards from the top of your library equal to the sacrificed creature’s power. Put one into your hand and exile the rest.]]></LOCALISED_TEXT>
  37.         <COST mana_cost="{3}" type="Mana" />
  38.         <COST type="TapSelf" />
  39.         <COST type="Generic">
  40.             <PREREQUISITE>
  41.                 local filter = ClearFilter()
  42.                 filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
  43.                 filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
  44.                 if filter:CountStopAt(1) == 1 then
  45.                     return true
  46.                 else
  47.                     return false
  48.                 end
  49.             </PREREQUISITE>
  50.             <RESOLUTION_TIME_ACTION>
  51.                 local filter = ClearFilter()
  52.                 filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
  53.                 filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
  54.                 EffectController():ChooseItem( "SPL_CARD_QUERY_CHOOSE_CREATURE_TO_SACRIFICE", EffectDC():Make_Targets(1))
  55.             </RESOLUTION_TIME_ACTION>
  56.             <RESOLUTION_TIME_ACTION>
  57.                 local sacrifice = EffectDC():Get_Targets(1) and EffectDC():Get_Targets(1):Get_CardPtr(0)
  58.                 if sacrifice ~= nil then
  59.                     local power = sacrifice:GetCurrentPower()
  60.                     EffectDC():Set_Int(33, power)
  61.                     EffectController():Sacrifice(sacrifice)
  62.                 end
  63.             </RESOLUTION_TIME_ACTION>
  64.         </COST>
  65.         <COST_DEFINITION id="1">
  66.             local oFilter = ClearFilter()
  67.             oFilter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
  68.         </COST_DEFINITION>
  69.         <RESOLUTION_TIME_ACTION>
  70.             local power = EffectDC():Get_Int(33)
  71.             local reveal_chest = EffectDC():Make_Chest(2)
  72.             for i=0, power-1 do
  73.                 local card = EffectController():Library_GetNth(i)
  74.                 if card ~= nil then
  75.                     reveal_chest:Set_CardPtr(i, card)
  76.                 end
  77.             end
  78.         </RESOLUTION_TIME_ACTION>
  79.         <RESOLUTION_TIME_ACTION>
  80.             local choiceDC = EffectDC():Get_Chest(2)
  81.             EffectController():ChooseItemFromDC( "SPL_CARD_QUERY_CHOOSE_CARD_TO_PUT_IN_HAND", choiceDC, EffectDC():Make_Targets(2))
  82.         </RESOLUTION_TIME_ACTION> -->
  83.         <RESOLUTION_TIME_ACTION>
  84.             local revealDC = EffectDC():Get_Chest(2)
  85.             local chosen_card = EffectDC():Get_Targets(2) and EffectDC():Get_Targets(2):Get_CardPtr(0)
  86.             local count = revealDC:Count()
  87.             for i=0, count-1 do
  88.                 local card = revealDC:Get_CardPtr(i)
  89.                 if card ~= nil then
  90.                     if card == chosen_card then
  91.                         card:PutInHand()
  92.                     else
  93.                         card:Exile()
  94.                     end
  95.                 end
  96.             end
  97.         </RESOLUTION_TIME_ACTION>
  98.     </ACTIVATED_ABILITY>
  99.     <AUTHOR><![CDATA[Splinterverse]]></AUTHOR>
  100.     <EDITORS><![CDATA[Splinterverse]]></EDITORS>
  101.     <DATE><![CDATA[19-11-16]]></DATE>
  102. </CARD_V2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement