IF
	Class(NearestEnemyOf(Myself),MAGE)
	See(NearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(NearestEnemyOf(Myself),10)
		Continue()
END

IF
	Class(SecondNearestEnemyOf(Myself),MAGE)
	See(SecondNearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(SecondNearestEnemyOf(Myself),10)
		Continue()
END

IF
	Class(ThirdNearestEnemyOf(Myself),MAGE)
	See(ThirdNearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(ThirdNearestEnemyOf(Myself),10)
		Continue()
END

IF
	Class(FourthNearestEnemyOf(Myself),MAGE)
	See(FourthNearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(FourthNearestEnemyOf(Myself),10)
		Continue()
END

IF
	Class(FifthNearestEnemyOf(Myself),MAGE)
	See(FifthNearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(FifthNearestEnemyOf(MostDamagedOf(GroupOf(Myself))),10)
		Continue()
END

IF
	HPPercentLT(MostDamagedOf(GroupOf(Myself)),40)
	See(NearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(NearestEnemyOf(MostDamagedOf(GroupOf(Myself))),10)
		Continue()
END

IF
	HPPercentLT(MostDamagedOf(GroupOf(Myself)),25)
	See(NearestEnemyOf(Myself))
THEN
	RESPONSE #5
		AttackOneRound(NearestEnemyOf(MostDamagedOf(GroupOf(Myself))))
		Kill(NearestEnemyOf(MostDamagedOf(GroupOf(Myself))))
	RESPONSE #100
		AttackReevaluate(NearestEnemyOf(MostDamagedOf(GroupOf(Myself))),10)
		Continue()
END

IF
	See(NearestEnemyOf(Myself))
	ActionListEmpty()
THEN
	RESPONSE #100
		ProtectObject(Nearest(Myself),5)
		Continue()
END

IF
	NumCreatureGT([ENEMY],2)
	Range(SecondNearestEnemyOf(Myself),5)
	HotKey(M)
THEN
	RESPONSE #100
		ForceSpell(Myself,WIZARD_FIREBALL)
		Wait(1)
		Continue()
END


