local enemy = ...
local behavior = require("enemies/generic/toward_hero")

-- Skeletor: an undead enemy.

local properties = {
  sprite = "enemies/skeletor",
  life = 8,
  damage = 6,
  normal_speed = 32,
  faster_speed = 40,
}
behavior:create(enemy, properties)

enemy:set_attack_arrow("protected")
enemy:set_attack_hookshot("protected")
enemy:set_attack_consequence("fire", "protected")
enemy:set_attack_consequence("boomerang", "protected")
enemy:set_attack_consequence("thrown_item", "protected")