fix crash on empty attrs, moved spells to damage