Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.71 KB | None | 0 0
  1. <TRIGGERED_ABILITY>
  2.         <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  3.         <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  4.         <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  5.         <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  6.         <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  7.         <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  8.         <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  9.         <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  10.         <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  11.         <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  12.         <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Whenever a player casts a spell, that player flips a coin. If the player loses the flip, counter that spell.]]></LOCALISED_TEXT>
  13.         <TRIGGER value="SPELL_PLAYED">
  14.             EffectDC():LKIShield_CardPtr(COMPARTMENT_ID_PARAM_TRIGGER_OBJECT) -- I've tried with an without this
  15.             return true
  16.         </TRIGGER>
  17.         <RESOLUTION_TIME_ACTION>
  18.             local player = CW_Planechase_GetCurrentPlayer() -- I've also tried having the Effect Controller be the coin flipper, but that didn't work either
  19.             player:FlipCoin()
  20.         </RESOLUTION_TIME_ACTION>
  21.         <RESOLUTION_TIME_ACTION>
  22.             local player = CW_Planechase_GetCurrentPlayer()
  23.             if player:GetFlipResult() == COIN_FLIP_LOSS then
  24.                 TriggerObjectLKI():CounterSpell() -- I've tried LKI and no LKI
  25.             elseif player:GetFlipResult() == nil then
  26.                 Debug("No flip value") -- this doesn't fire, so it's getting the value, but not countering.
  27.             end
  28.         </RESOLUTION_TIME_ACTION>
  29.     </TRIGGERED_ABILITY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement