if(jieduan=0)
        setpos(0,11,40,121,200)
	hero[2][3]
	hero[0][0]=108
	hero[0][1]=117
	hero[0][2]=109
	hero[1][0]=10
	hero[1][1]=10
	hero[1][2]=10
	addHero(hero)
	sethp(5,700)
	setmp(5,700)
	setJD(jieduan+1)
	addBuff(5,8,-1,0)
endif

if(jieduan=1)
	talk[1]
	talk[0]="战斗提示:猴妖依靠小妖护法，#解决完两边的小妖$才能对猴妖造成伤害!"
	setTalk(1,talk)
	setJD(jieduan+1)
	jieduan=jieduan+1 
endif

if(jieduan=2)
	act[1]
	act[0]=2
	randomContor(4,act)
	setcontor(6,-1,0,0)
	if(mod(count,6)=0)
		talk[1]
		talk[0]="战斗提示:猴妖依靠小妖护法，#解决完两边的小妖$才能对猴妖造成伤害!"
		setTalk(1,talk)
	endif
	hp1=gethp(4)
	hp2=gethp(6)
	if(hp1<=0&hp2<=0)
		setspeed(5,999)
		removeBuff(5,8)
		setJD(3)
		talk[2]
		talk[0]="你的死相会比它们更惨!"
		talk[1]="战斗提示：猴妖的#护法盾被消除$!"
		setTalk(5,talk)
		setcontor(5,-1,1,4)
	else
		if(probability(70))
			act[2]
			act[0]=1
			act[1]=2
			randomContor(5,act)
		else
			setcontor(5,-1,0,0) 
		endif
	endif
endif

if(jieduan=3)
	randomAllContor()
endif

ret
