IF
	Global("Semaj2","GLOBAL",0)
	See(NearestEnemyOf(Myself(Myself)))
THEN
	RESPONSE #100
		ForceSpell(Myself(Myself),CLERIC_ARMOR_OF_DARKNESS)
		SmallWait(5)
		ForceSpell(Myself(Myself),WIZARD_TENSERS_TRANSFORMATION)
		SmallWait(5)
		ForceSpell(Myself(Myself),CONTINGENCY_MIRROR_IMAGE)
	RESPONSE #100
		Wait(2)
		ForceSpell(NearestEnemyOf(Myself(Myself)),CLERIC_SELUNES_CURSE)
		SetGlobal("Semaj2","GLOBAL",1)
END

IF
	Global("Semaj2","GLOBAL",1)
	See(NearestEnemyOf(Myself(Myself)))
THEN
	RESPONSE #100
		ForceSpell(NearestEnemyOf(Myself(Myself)),WIZARD_DOMINATION)
		SetGlobal("Semaj2","GLOBAL",2)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("Semaj2","GLOBAL",2)
THEN
	RESPONSE #100
		ForceSpell(NearestEnemyOf(Myself(Myself)),INNATE_CAUSE_SERIOUS_WOUNDS)
	RESPONSE #100
		Wait(2)
		ForceSpell(SecondNearestEnemyOf(Myself(Myself)),POWERWORD_KILL)
		SetGlobal("Semaj2","GLOBAL",3)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("Semaj2","GLOBAL",3)
THEN
	RESPONSE #100
		ForceSpell(LeaderOf(GroupOf(Myself)),CLERIC_CHAOTIC_COMMANDS)
	RESPONSE #100
		ForceSpell(NearestEnemyOf(Myself(Myself)),WIZARD_DEATH_SPELL)
		SetGlobal("Semaj2","GLOBAL",4)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("Semaj2","GLOBAL",4)
THEN
	RESPONSE #100
		ForceSpell(StrongestOf(GroupOf(Myself)),CLERIC_SELUNES_CURSE)
		SetGlobal("Semaj2","GLOBAL",5)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("Semaj2","GLOBAL",5)
THEN
	RESPONSE #100
		ForceSpell(StrongestOf(GroupOf(Myself)),WIZARD_DOMINATION)
		SetGlobal("Semaj2","GLOBAL",6)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("Semaj2","GLOBAL",6)
THEN
	RESPONSE #100
		ForceSpell(MostDamagedOf(GroupOf(Myself)),CLERIC_COMMAND)
		SetGlobal("Semaj2","GLOBAL",7)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	HPPercentLT(Myself(Myself),75)
THEN
	RESPONSE #100
		ForceSpell(Myself(Myself),CLERIC_HEAL)
		Continue()
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("Semaj2","GLOBAL",7)
THEN
	RESPONSE #75
		EquipMostDamagingMelee()
		AttackOneRound(NearestEnemyOf(Myself(Myself)))
		AttackOneRound(NearestEnemyOf(Myself(Myself)))
		Continue()
	RESPONSE #25
		ForceSpell(NearestEnemyOf(Myself),CLERIC_HARM)
		Continue()
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	NumCreatureGT(NearestEnemyOf("Sarevok"),6)
THEN
	RESPONSE #100
		ForceSpell(NearestEnemyOf("Sarevok"),POWERWORD_KILL)
		Continue()
END


