IF
  See(NearestEnemyOf(Myself))
  HPPercentLT(Myself,30)
  Global("minttheif","Locals",0)
THEN
  RESPONSE #100
    ApplySpell(Myself,WIZARD_IMPROVED_INVISIBILITY)
    SetGlobal("minttheif","Locals",1)
END

IF
  See(NearestEnemyOf(Myself))
  Range(NearestEnemyOf(Myself),25)
THEN
  RESPONSE #100
    EquipMostDamagingMelee()
    Attack(NearestEnemyOf(Myself))
END

