if(jieduan=0)
        setpos(0,20,2,216,304)
	setHortation(false)
	hero[2][1]
	hero[0][0]=127
	hero[1][0]=65
	addHero(hero)
	sethp(4,16000)
	setmp(4,16000)
	setspeed(4,999)
	setJD(jieduan+1)
	addBuff(4,8,1,0)
endif

if(jieduan=1)
	talk[2]
	talk[0]="今天，所有的灵魂都将饕餮不已。"
	talk[1]="献祭所有的祭品，为我们的新客人腾出空间！哈哈哈！"
	setTalk(4,talk)
	setJD(jieduan+1)
	setcontor(4,-1,-1,0)
endif

if(jieduan=2)
	hp=gethp(4)
	if(hp>=12000)
		if(getbuff(2,5))
			if (getbuff(4,1))
			else
				talk[2]
				talk[0]="阴影将会降临在你们的头上!"
				talk[1]="战斗提示：#瘟疫种子感染$其他角色"
				setTalk(4,talk)
				addBuff(1,5,1,2000)
				addBuff(3,5,1,2000)
				setcontor(4,-1,-1,0)
			endif
		endif
		if(mod(count,5)=0&gethp(2)>0)
			if(getbuff(4,1))
			else
				talk[2]
				talk[0]="等待你的将只有痛苦与折磨!"
				talk[1]="战斗提示：邪帝女散播#瘟疫种子$，请尽快#驱散$，不然瘟疫种子将#感染$其周围的人"
				setTalk(4,talk)
				addBuff(2,5,3,1000)
				setcontor(4,-1,-1,0)
			endif
		endif
		if(probability(70))
			act[4]
			act[0]=27
			act[1]=28
			act[2]=30
			act[3]=41
			randomContor(4,act)
		else
			setcontor(4,-1,0,0)
		endif
	else
		removeBuff(4,14)
		removeBuff(4,1)
		addBuff(4,17,-1,100)
		setcontor(4,-1,1,16)
		setJD(jieduan+1)
		talk[3]
		talk[0]="为死亡庆祝吧，我开始兴奋起来了！"
		talk[1]="提示：战斗进入#第二阶段$"
		talk[2]="战斗提示：邪帝女#闪避防御$下降，#暴击$上升"
		setTalk(4,talk)
	endif
endif

if(jieduan=3)
	hp=gethp(4)
	if(hp>=8000)
		removeBuff(4,23)
		removeBuff(4,29)
		addBuff(4,23,-1,500)
		addBuff(4,29,-1,50)
		if(probability(70))
			act[4]
			act[0]=39
			act[1]=40
			act[2]=42
			act[3]=16
			randomContor(4,act)
		else
			setcontor(4,-1,0,0)
		endif
	else
		removeBuff(4,23)
		removeBuff(4,29)
		removeBuff(4,17)
		setelf(4,200)
		setmp(4,40000)
		addBuff(4,16,-1,100)
		removeBuff(4,14)
		removeBuff(4,1)
		setcontor(4,-1,1,18)
		setJD(jieduan+1)
		talk[3]
		talk[0]="狂欢过后，我可能有些疲倦了!"
		talk[1]="提示：战斗进入#第三阶段$"
		talk[2]="战斗提示：邪帝女进入#睡眠$状态"
		setTalk(4,talk)
	endif
endif

if(jieduan=4)
	hp=gethp(4)
	if(hp>=3000)
		if(mod(count,7)=0)
			talk[1]
			talk[0]="别打扰我的休息!"
			setTalk(4,talk)
			setcontor(4,-1,1,18)
		else
			setcontor(4,-1,-1,0)
		endif
	else
		removeBuff(4,16)
		removeBuff(4,14)
		removeBuff(4,1)
		setelf(4,156)
		setmp(4,40000)
		addBuff(4,7,-1,0)
		addBuff(4,4,-1,1000)
		setcontor(4,-1,1,17)
		setJD(jieduan+1)
		talk[2]
		talk[0]="能量的感觉多么熟悉啊!这下你们彻底完蛋了!"
		talk[1]="提示：战斗进入#第四阶段$ 邪帝女如同#神$一般了"
		setTalk(4,talk)
	endif
endif

if(jieduan=5)
	if (getbuff(4,1)|getbuff(4,14))
	else
		talk[1]
		talk[0]="提示：邪帝女已经#超越神$了！拜托谁去杀了他吧！"
	endif
	setTalk(4,talk)
	if(mod(count,2)=0)
		setcontor(4,-1,1,17)
	else
		setcontor(4,-1,1,18)
	endif
endif

ret
