aboutsummaryrefslogtreecommitdiff
path: root/src/server/database/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-04-10 04:50:09 -0300
committerariel- <ariel-@users.noreply.github.com>2017-04-10 04:50:09 -0300
commite565b34f6d24411e210151d0d03e524f94cdff85 (patch)
tree47d6651315b8a19ce14f43ddd5780100a278c601 /src/server/database/Database/MySQLConnection.cpp
parente478434146fd479fab955aaa80eb925c15e29809 (diff)
Core/Unit: cleanup and minor fixes of miss and resist calculations
- Removed Unit::GetUnitMeleeSkill as it was basically a copy of GetMaxSkillValueForLevel - Removed static from GetEffectiveResistChance, as this was passed anyways, changed name to CalculateAverageResistReduction, which better reflects what it does - Fix melee miss chances calculated from attacker maxskill instead of victim maxskill - Do actual checks if spell can be resisted/missed in MagicSpellHitResult (ie chances > 0) - Fixed SPELLMOD_RESIST_MISS_CHANCE calculation in MeleeSpellMissChance - Minor codestyle and cleanup of diminishing returns calcs
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
0 files changed, 0 insertions, 0 deletions