Code
-- If DefenseMode is active, apply that gear over midcast -- choices. Precast is allowed through for fast cast on -- spells, but we want to return to def gear before there's -- time for anything to hit us. -- Exclude Job Abilities from this restriction, as we probably want -- the enhanced effect of whatever item of gear applies to them, -- and only one item should be swapped out. if state.DefenseMode.value ~= 'None' and spell.type ~= 'JobAbility' then handle_equipping_gear(player.status) eventArgs.handled = true