IF
  Die()
THEN
  RESPONSE #100
    Shout(66)
END

IF
  !Allegiance(Myself,ENEMY)
  AttackedBy([GOODCUTOFF],DEFAULT)
THEN
  RESPONSE #100
    Enemy()
END

IF
	See(NearestEnemyOf(Myself))
	!StateCheck(Myself,STATE_HASTED)
THEN
	RESPONSE #100
		ReallyForceSpell(Myself,GOLEM_HASTE)
END

IF
  ActionListEmpty()
  !Range(NearestEnemyOf(Myself),5)
THEN
  RESPONSE #100
    EquipRanged()
    SelectWeaponAbility(SLOT_WEAPON0,1)
    SelectWeaponAbility(SLOT_WEAPON1,1)
    AttackReevaluate(NearestEnemyOf(Myself),15)
END

IF
  ActionListEmpty()
  Range(NearestEnemyOf(Myself),5)
  See(NearestEnemyOf(Myself))
THEN
  RESPONSE #100
    EquipMostDamagingMelee()
    SelectWeaponAbility(SLOT_WEAPON0,0)
    SelectWeaponAbility(SLOT_WEAPON1,0)
    AttackReevaluate(NearestEnemyOf(Myself),15)
END

