windup.xml

<statusEffects>
  <statusEffect>
    <turns>1</turns>
    <key>windup</key>
    <color>d05f14</color>
    <skipFirstTurn>true</skipFirstTurn>
    <reduceOnStartOfTurn>true</reduceOnStartOfTurn>
    <description>
      Your flail whirls menacingly over your head; ready to strike with brutal precision.
    </description>
    <triggers>
      <triggers>
        KEY wind_up_spent_trigger;
        WHEN PlayerAttackAnimationComplete -> isDirectPhysicalAttack:true;
        THEN RemoveStatusEffect -> key:«LINK:windup», target:player;
      </triggers>
      <triggers>
        KEY wind_up_weapon_switch_trigger;
        WHEN PlayerUnequipsItem;
        IF NOT PlayerHasRequirement -> type:weapon, weapon:Flail;
        THEN RemoveStatusEffect -> key:«LINK:windup», target:player;
      </triggers>
    </triggers>
  </statusEffect>
</statusEffects>