last_stand.xml
<abilities>
<ability>
<name>Last Stand</name>
<key>last_stand</key>
<skill>chivalry</skill>
<icon>last_stand</icon>
<tagline>"You will break before I do!"</tagline>
<description>
At the start of your turn if your Health is below 25, gain 10 Shield, plus an additional 0.5 Shield
for each Chivalry level.
[p]{{abilityStatusCooldown -> ability:last_stand, status:last_stand_cooldown_1, default:100}}
</description>
<type>passive</type>
<subType>1_Unique Passives</subType>
<passiveInfo>
<triggers>
<triggers>
KEY last_stand_trigger;
WHEN PlayerTurnStart;
AND PlayerHasHealth -> lessthan:25;
AND NOT HasStatusEffect -> key:last_stand_cooldown_1, target:player;
THEN CalcParam -> key:last_stand_health, amount:0.50, multiplierSkill:chivalry;
THEN Evaluator -> operation:add, amount:10, key:last_stand_health;
THEN GiveShield -> amount:{{last_stand_health}};
THEN ApplyStatusEffect -> key:«LINK:last_stand_cooldown_1», target:player;
THEN PlaySound -> key:buff_02;
THEN write_log2 -> text:{{last_stand_health}} shield gained (Last Stand), type:combat;
</triggers>
</triggers>
</passiveInfo>
<unlockInfo>
<autoUnlock>-1</autoUnlock>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>2</requiredPoints>
<requires>bravery OR heroic_onslaught</requires>
</unlockRequirements>
</unlockInfo>
</ability>
</abilities>