IF
	Exists([PC])
	Range(NearestEnemyOf(Myself),50)
	!Range(NearestEnemyOf(Myself),5)
THEN
	RESPONSE #100
		SetGlobal("DragonDead","GLOBAL",1)
		EquipRanged()
		Attack(NearestEnemyOf(Myself))
		Continue()
END

IF
	See([PC])
	Range(NearestEnemyOf(Myself),15)
	!Range(NearestEnemyOf(Myself),5)
THEN
	RESPONSE #100
		SetGlobal("DragonDead","GLOBAL",1)
		ForceSpell(NearestEnemyOf(Myself),ACID_BREATH)
		Wait(5)
		Continue()
END

IF
	See(NearestEnemyOf(Myself))
THEN
	RESPONSE #100
		EquipMostDamagingMelee()
		AttackReevaluate(NearestEnemyOf(Myself),10)
	RESPONSE #50
		SetGlobal("DragonDead","GLOBAL",1)
		ForceSpell(NearestEnemyOf(Myself),ACID_BREATH)
		Wait(5)
		Continue()
END


