revert damage amount
merge attack code.