overcome_the_odds_2.xml
<abilities>
<ability>
<clone>overcome_the_odds</clone>
<key>overcome_the_odds_2</key>
<description>
Unleash a war cry to cleanse all stuns and disabling effects and gain 'Overcome the Odds'
for ⮃7 turns⮃.
[p]
This includes any effect that prevents movement, interaction, or ability usage.
[p]'Overcome the Odds' grants +15% stun resist, +15% knockback resist, and +15% physical warding per
adjacent enemy upon casting.
[p]You can use this ability even while stunned.
</description>
<immediateInfo>
<abilityUseTime>
<type>standard</type>
</abilityUseTime>
<effects>
<effects>
RemoveAllStuns;
THEN CalcEnemiesNearby -> flag:overcome_the_odds_enemies, distance:1, output:global;
THEN ApplyStatusEffect -> key:«LINK:overcome_the_odds_status_2», target:player;
</effects>
</effects>
</immediateInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>1</requiredPoints>
</unlockRequirements>
<replaces>overcome_the_odds</replaces>
</unlockInfo>
</ability>
</abilities>