local OLD_SPELL_VERSION=""
spell_ok $SPELL && OLD_SPELL_VERSION="$(installed_version $SPELL)"

if [ "${VERSION:0:4}" != "${OLD_SPELL_VERSION:0:4}" ]; then
  message "${MESSAGE_COLOR}This is a possibly incompatible update of ${SPELL_COLOR}${SPELL}${DEFAULT_COLOR}${MESSAGE_COLOR}...${DEFAULT_COLOR}"
  message "${MESSAGE_COLOR}Figuring out what spells need to be recast, this may take a while.${DEFAULT_COLOR}"
  for each in $(show_up_depends $SPELL 1); do
    up_trigger $each cast_self
  done
fi
