function lam.pickForm(formType) if not formType then lam.echo("No argument given to lam.pickForm", "red") return end local valid = {"iceLegs", "iceArms", "dust"} if not table.contains(valid, formType) then lam.echo("Invalid argument given to lam.pickForm", "red") return end local stance = lam.getStance() if formType == "dust" then lam.nextForm = "dust" if stance == "k" then lam.nextForm = "dustgrapple" end end if formType == "iceLegs" then if lam.didIceOpen == false then lam.nextForm = "icegrapple" if stance == "b" or stance == "n" then lam.boostNext = true elseif stance == "th" then lam.headbuttNext = true lam.didIceOpen = true end else lam.nextForm = "rlm" if stance == "n" then lam.didIceOpen = false lam.nextForm = "icegrapple" lam.boostNext = true elseif stance == "b" and tonumber(gmcp.Char.Vitals.pow) > 6 then lam.boostNext = true elseif stance == "th" and tonumber(gmcp.Char.Vitals.pow) > 7 then lam.headbuttNext = true elseif stance == "c" then lam.lowNext = true if target.hasAff("LLegDamaged") and not target.hasAff("RLegDamaged") then lam.nextForm = "llm" end elseif stance == "k" then if tonumber(gmcp.Char.Vitals.pow) > 7 then lam.regressNext = true lam.lowNext = true if target.hasAff("RLegMutilated") and target.hasAff("LLegDamaged") then lam.nextForm = "llm" end end end end end end