add comments

refactor: create monspell_damage()

refactor: remove duplicated spell_damage definition from process_warning