Whenever action is not possible or a condition does not apply, move to next item down.

    Condition			Action
1: Fall over cliff/similar		cast Feathery Flier
2: Gaze attack used		cast gaze reflection
3: Ally HP is Low 			give potion/use curative spell
4: HP is low			use potion/curative spell
5: HP is low			flee
6: Undead enemy attacking ally	Cast fire spell
7: Undead enemy			Cast fire spell
8: Enemy attacking ally		Run to 90 feet away, cast Damage based spell
9: Enemy attacking ally		Melee attack
10: Enemy HP<=20%		Melee attack
11: Hostile being near		Run to 90 feet away, cast Damage based spell
12: Hostile being near		Melee attack