Fixed a wrong damage calculation