prepare_for_onslaught.xml
<abilities>
<ability>
<name>Prepare for Onslaught</name>
<key>prepare_for_onslaught</key>
<skill>warrapt</skill>
<icon>prepare_for_onslaught</icon>
<tagline>"Hold now, unleash hell later."</tagline>
<description>
If you do not attack for 5 consecutive turns, gain +50% multistrike on your next attack, plus an
additional +2% multistrike for every level of warrapt.
</description>
<type>passive</type>
<subType>2_art_of_preparation</subType>
<passiveInfo>
<triggers>
<triggers>
KEY prepare_for_onslaught_trigger_1;
WHEN PlayerAttacks;
THEN ModifyGlobalFlag -> global_flag:prepare_for_onslaught_attack, operation:set, amount:0;
</triggers>
<triggers>
KEY prepare_for_onslaught_trigger_2;
WHEN PlayerTurnStart;
THEN ModifyGlobalFlag -> global_flag:prepare_for_onslaught_attack, operation:add, amount:1;
</triggers>
<triggers>
KEY prepare_for_onslaught_trigger_3;
WHEN PlayerTurnStart;
AND GlobalFlagCompare -> key:prepare_for_onslaught_attack, greater_than:4;
THEN ApplyStatusEffect -> key:«LINK:prepare_for_onslaught_status», refresh:true, target:player;
</triggers>
</triggers>
</passiveInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>2</requiredPoints>
<requires>predictive_veering OR reactive_maneuver</requires>
</unlockRequirements>
</unlockInfo>
<statusEffects>
<statusEffects>
<name>Prepare for Onslaught</name>
<key>prepare_for_onslaught_status</key>
<icon>prepare_for_onslaught</icon>
<allowMany>false</allowMany>
<hasTurns>false</hasTurns>
<modifiers>
<modifiers>
<type>Multistrike</type>
<amount>0.5</amount>
</modifiers>
<modifiers>
<type>Multistrike</type>
<amount>0.02</amount>
<multiplier>warrapt</multiplier>
</modifiers>
</modifiers>
<triggers>
<triggers>
KEY prepare_for_onslaught_status_trigger;
WHEN PlayerAttacks;
THEN RemoveStatusEffect -> key:«LINK:prepare_for_onslaught_status», target:player;
</triggers>
</triggers>
</statusEffects>
</statusEffects>
</ability>
</abilities>