overcome_the_odds.xml
<abilities>
<ability>
<hideHitSplash>true</hideHitSplash>
<name>Overcome the Odds</name>
<key>overcome_the_odds</key>
<skill>chivalry</skill>
<icon>overcome_the_odds</icon>
<tagline>"The odds were never in my favor. Yet here I stand!"</tagline>
<description>
Unleash a war cry to cleanse all stuns and disabling effects and gain 'Overcome the Odds'
for ⮃5 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>
<type>Immediate</type>
<subType>2_abilities</subType>
<abilitySoundPack>overcome_the_odds</abilitySoundPack>
<overridesAbilitiesDisabled>true</overridesAbilitiesDisabled>
<cost>15.0</cost>
<cooldown>40</cooldown>
<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_1», target:player;
</effects>
</effects>
</immediateInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>1</requiredPoints>
<requires>last_stand OR vanguards_edge</requires>
</unlockRequirements>
</unlockInfo>
</ability>
</abilities>