output("Ѩ: [¶][ʢ][][][][ɢϼ][][][][][ü][϶]")

--
local v = {}

--ѭ
function Main(g_player)
	--϶
	if casting("ѩƮҡ") and castprog() < 0.34 then return end

	--
	if nobuff("") then
		cast("ķ", true)
	end

	---------------------------------------------Ŀ
	--ĿʼΪԼ
	v["Ŀ"] = id()

	--ŶѪٵĶѣҵ˲ѪԼͣͰĿΪ
	v["Ѫٶ"] = party("û״̬:", "Լ", "<20", "߿ɴ", "Ѫ")
	if v["Ѫٶ"] ~= 0 and xlife(v["Ѫٶ"]) < life() then
		v["Ŀ"] = v["Ѫٶ"]
	end

	---------------------------------------------Ѫ
	v["ĿѪ"] = xlife(v["Ŀ"])
	
	
	if v["ĿѪ"] < 0.5 then
		xcast("ĸ", v["Ŀ"], true)
		xcast("Ͱ", v["Ŀ"], true)
	end


	--ĿǵǰڶѩĿ
	if casting("ѩƮҡ") and v["Ŀ"] == casttarget() then
		return
	end

	if v["ĿѪ"] < 0.9 then
		if xbufftime("Ԫ", v["Ŀ"]) < -1 then
			xcast("Ԫ", v["Ŀ"], true)
		end
		if xbufftime("", v["Ŀ"]) < -1 then
			xcast("", v["Ŀ"], true)
		end
	end
	
	if v["ĿѪ"] < 0.8 then
		xcast("ѩƮҡ", v["Ŀ"], true)
	end

	--Tϳ
	xcast("Ԫ", party("û״̬:", "<20", "ڹ:ϴ辭|||", "߿ɴ", "ҵbuffʱ:Ԫ<-1"))
	xcast("", party("û״̬:", "<20", "ڹ:ϴ辭|||", "߿ɴ", "ҵbuffʱ:<-1"))

end
