Revert "#1791 - script error"

This reverts commit c8a785c267c7dcbeeb64031886254ac74a52cadf.
Resolve script error in handleDamage, fix #1791