local dmg_phases = {10, 50, 101}
local current_dmg_phase, clicked = 1, false
callbacks.create_move(function()
-- VK_MENU / 0x12 / ALT key
if key_held(0x12) and clicked == false then
clicked = true
else
clicked = false
end
if not clicked then goto continue end
for i in pairs(dmg_phases) do
if i + 1 > #dmg_phases then
current_dmg_phase = 1
else
if i == current_dmg_phase then
current_dmg_phase = i + 1
end
end
end
::continue::
set_mindamage(dmg_phases[current_dmg_phase])
end)