Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 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.
- <TRIGGERED_ABILITY>
- <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Prevent all damage that would be dealt by instant and sorcery spells.]]></LOCALISED_TEXT>
- <TRIGGER value="OBJECT_TAKES_DAMAGE" pre_trigger="1" damage_type="all">
- return (TriggerObject():GetCardType():Test( CARD_TYPE_INSTANT ) or TriggerObject():GetCardType():Test( CARD_TYPE_SORCERY ))
- </TRIGGER>
- <RESOLUTION_TIME_ACTION>
- Damage():PreventAll()
- </RESOLUTION_TIME_ACTION>
- </TRIGGERED_ABILITY>
- <TRIGGERED_ABILITY>
- <TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" pre_trigger="1" damage_type="all">
- return (TriggerObject():GetCardType():Test( CARD_TYPE_INSTANT ) or TriggerObject():GetCardType():Test( CARD_TYPE_SORCERY ))
- </TRIGGER>
- <RESOLUTION_TIME_ACTION>
- Damage():PreventAll()
- </RESOLUTION_TIME_ACTION>
- </TRIGGERED_ABILITY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement