IF
	Global("SummonEffreeti","GLOBAL",0)
	See(NearestEnemyOf(Myself(Myself)))
THEN
	RESPONSE #100
		ForceSpellPoint([1804.2026],SUMMON_EFFREETI)
		SetGlobal("SummonEffreeti","GLOBAL",1)
		SetGlobal("RedWizardsBrendan","GLOBAL",1)
END

IF
	Global("RedWizardsBrendan","GLOBAL",1)
	See(NearestEnemyOf(Myself(Myself)))
THEN
	RESPONSE #100
		ForceSpell(NearestEnemyOf(Myself(Myself)),WIZARD_MAGIC_MISSILE)
		SmallWait(5)
		ForceSpell(SecondNearestEnemyOf(Myself(Myself)),WIZARD_MAGIC_MISSILE)
		SmallWait(5)
		ForceSpell(ThirdNearestEnemyOf(Myself(Myself)),WIZARD_MAGIC_MISSILE)
		SmallWait(5)
		ForceSpell(Myself,WIZARD_AURA_CLEANSING)
		Wait(1)
		ForceSpell(Myself,WIZARD_GLOBE_OF_INVULNERABILITY)
		Wait(1)
		ForceSpell(Myself,WIZARD_HASTE)
		SetGlobal("RedWizardsBrendan","GLOBAL",2)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("RedWizardsBrendan","GLOBAL",2)
THEN
	RESPONSE #100
		ForceSpell(NearestEnemyOf(Myself(Myself)),WIZARD_POWER_WORD_STUN)
	RESPONSE #100
		Wait(2)
		ForceSpell(SecondNearestEnemyOf(Myself(Myself)),WIZARD_FLAME_ARROW)
		SetGlobal("RedWizardsBrendan","GLOBAL",3)
END

IF
	See(NearestEnemyOf(Myself(Myself)))
	Global("RedWizardsBrendan","GLOBAL",3)
THEN
	RESPONSE #100
		ForceSpell(NearestEnemyOf(Myself(Myself)),WIZARD_DOMINATION)
		SetGlobal("RedWizardsBrendan","GLOBAL",4)
END

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

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

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

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

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

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


