Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.35 KB | None | 0 0
  1. -- I have also tried PLAYER_TAKES_DAMAGE and OBJECT_TAKES_DAMAGE, but those triggers don't appear to work with SecondaryObject() so that I can specify instant or sorcery only.
  2.  
  3. <TRIGGERED_ABILITY>
  4.         <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  5.         <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  6.         <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  7.         <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  8.         <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  9.         <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  10.         <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  11.         <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  12.         <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  13.         <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  14.         <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
  15.         <TRIGGER value="OBJECT_TAKES_DAMAGE" pre_trigger="1" damage_type="all">
  16.             return (TriggerObject():GetCardType():Test( CARD_TYPE_INSTANT ) or TriggerObject():GetCardType():Test( CARD_TYPE_SORCERY ))
  17.         </TRIGGER>
  18.         <RESOLUTION_TIME_ACTION>
  19.             Damage():PreventAll()
  20.         </RESOLUTION_TIME_ACTION>
  21.     </TRIGGERED_ABILITY>
  22.     <TRIGGERED_ABILITY>
  23.         <TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" pre_trigger="1" damage_type="all">
  24.             return (TriggerObject():GetCardType():Test( CARD_TYPE_INSTANT ) or TriggerObject():GetCardType():Test( CARD_TYPE_SORCERY ))
  25.         </TRIGGER>
  26.         <RESOLUTION_TIME_ACTION>
  27.             Damage():PreventAll()
  28.         </RESOLUTION_TIME_ACTION>
  29.     </TRIGGERED_ABILITY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement