Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TRIGGERED_ABILITY>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <TRIGGER value="SPELL_PLAYED">
- EffectDC():LKIShield_CardPtr(COMPARTMENT_ID_PARAM_TRIGGER_OBJECT) -- I've tried with an without this
- return true
- </TRIGGER>
- <RESOLUTION_TIME_ACTION>
- local player = CW_Planechase_GetCurrentPlayer() -- I've also tried having the Effect Controller be the coin flipper, but that didn't work either
- player:FlipCoin()
- </RESOLUTION_TIME_ACTION>
- <RESOLUTION_TIME_ACTION>
- local player = CW_Planechase_GetCurrentPlayer()
- if player:GetFlipResult() == COIN_FLIP_LOSS then
- TriggerObjectLKI():CounterSpell() -- I've tried LKI and no LKI
- elseif player:GetFlipResult() == nil then
- Debug("No flip value") -- this doesn't fire, so it's getting the value, but not countering.
- end
- </RESOLUTION_TIME_ACTION>
- </TRIGGERED_ABILITY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement