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 [b]Overcome the Odds[/b] for
⮃7 turns⮃.
[p]This includes any effect that prevents movement, interaction or ability usage.
[p][b]Overcome the Odds[/b]: +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 RemoveStatusEffect -> key:«LINK:overcome_the_odds_status_1», target:player;
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>