ApplyDamage in new Ex class used for general script functions