wild_wild_swings_3.xml
<abilities>
<ability>
<clone>wild_wild_swings</clone>
<key>wild_wild_swings_3</key>
<description>
Attacks suffer ⮃-14 accuracy penalty⮃, but gain ⮃+10 maximum damage⮃ and ⮃+30% crit chance⮃.
</description>
<type>Toggle</type>
<toggleInfo>
<modifiers>
<modifiers>
<type>AttackCost</type>
<amount>3.0</amount>
</modifiers>
<modifiers>
<type>Accuracy</type>
<amount>-14.0</amount>
</modifiers>
<modifiers>
<type>MinimumDamage</type>
<amount>-5.0</amount>
</modifiers>
<modifiers>
<type>MaximumDamage</type>
<amount>10.0</amount>
</modifiers>
<modifiers>
<type>CritChance</type>
<amount>0.3</amount>
</modifiers>
</modifiers>
<triggers>
<triggers>
KEY unstoppable_trigger;
WHEN PlayerMisses;
IF PlayerHasAbility -> key:unstoppable;
THEN ModifyGlobalFlag -> global_flag:unstoppable_misses_current, operation:add, amount:1;
THEN ModifyGlobalFlag -> global_flag:unstoppable_misses_current, operation:minimum, amount:99;
THEN ApplyStatusEffect -> key:«LINK:unstoppable_status», target:player, refresh:true;
</triggers>
<triggers>
KEY unstoppable_trigger_turn_update;
WHEN PlayerTurnComplete;
IF PlayerHasAbility -> key:unstoppable;
THEN ModifyGlobalFlag -> global_flag:unstoppable_misses, operation:set,
amount:{{G:unstoppable_misses_current}};
THEN ModifyGlobalFlag -> global_flag:unstoppable_misses_current, operation:set, amount:0;
THEN ModifyGlobalFlag -> global_flag:unstoppable_turns, operation:add, amount:1;
</triggers>
<triggers>
KEY unstoppable_correct_1st_turn_trigger;
WHEN PlayerMisses;
IF PlayerHasAbility -> key:unstoppable;
IF GlobalFlagCompare -> key:unstoppable_turns, less_than:1;
THEN ModifyGlobalFlag -> global_flag:unstoppable_misses, operation:add, amount:1;
THEN ModifyGlobalFlag -> global_flag:unstoppable_misses, operation:minimum, amount:99;
</triggers>
<triggers>
KEY wild_bleeds_trigger;
WHEN PlayerCrits;
IF PlayerHasAbility -> key:wild_bleeds;
THEN ApplyStatusEffectToDefender -> key:«LINK:bleed_severe»;
THEN write_log -> logAfterCombat:true, text:Your crit causes a bleed (Wild Bleeds), type:combat;
</triggers>
</triggers>
</toggleInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>1</requiredPoints>
</unlockRequirements>
<replaces>wild_wild_swings_2</replaces>
</unlockInfo>
</ability>
</abilities>