IF
   Global("DeDeanoUnderAttack","GLOBAL",1)
   !Allegiance(Myself,ENEMY)
THEN
   RESPONSE #100
      Enemy()
END

IF
   AttackedBy([GOODCUTOFF],DEFAULT)
   !Allegiance(Myself,ENEMY)
THEN
   RESPONSE #100
      Enemy()
      SetGlobal("DeDeanoUnderAttack","GLOBAL",1)
END

IF
   OR(5)
      See(NearestEnemyOfType([GOODCUTOFF]))
      See(NearestEnemyOfType([GOODCUTOFF.0.0.BARD_ALL]))
      See(NearestEnemyOfType([GOODCUTOFF.0.0.CLERIC_ALL]))
      See(NearestEnemyOfType([GOODCUTOFF.0.0.DRUID_ALL]))
      See(NearestEnemyOfType([GOODCUTOFF.0.0.FIGHTER_ALL]))
   False()
THEN
   RESPONSE #100
END

IF
   See(LastSeenBy(Myself))
THEN
   RESPONSE #100
      EquipMostDamagingMelee()
      AttackReevaluate(LastSeenBy(Myself),30)
END
