TrinityCore/TrinityCore — pull request #6826 by Elron103 (2012-06-16 22:55:29+00:00)
Title: Core/Entities: Fix possible overflows in health calculation functions

This is meant to fix some possible overflows.
You might not want to calculate 12.000.000 HP * 100 just to get wrong results finally. :P

Since this might be compiler dependent as far as I know, I tried that in MSVC.
A bit information for strange codestyle:

int64(GetHealth()) - int64(damage) != int64(GetHealth() - damage)
int < uint => Possible warning of signed / unsigned mismatch, so both sides use int for that damage function