aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-10-04 01:09:27 -0300
committerariel- <ariel-@users.noreply.github.com>2016-10-04 01:26:34 -0300
commit0c24e4ee0e1f0bbb37f740aa6f0d45c384ee955d (patch)
tree659b3fe178d8473edbdb85445308113b649603d8 /src/server/scripts
parentc25f7c48b5ba3982fc83b8c88a8cff619f72b162 (diff)
Core/Unit: rewrite of the attack table system
- Removed a bunch of duplicated code - Fix off-by-one errors in Unit::RollMeleeOutcomeAgainst and Unit::MeleeSpellHitResult (TC's combat table was actually of 100.01%) - Implemented boss-level hit table (6.5% dodge/14% parry), bosses only had 5.6% of each until now - Updated formula for chance and damage of Glancing hits Sources: - http://wow.gamepedia.com/index.php?title=Attack_table&oldid=2071465 - http://web.archive.org/web/20100903145646/http://www.mmo-champion.com/threads/650071-Expertise-Hit-for-Paladins-%28updated-for-3.3%29?daysprune=60
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_dk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp
index 980c0db19cc..4dfd9ff09ff 100644
--- a/src/server/scripts/Spells/spell_dk.cpp
+++ b/src/server/scripts/Spells/spell_dk.cpp
@@ -1727,7 +1727,7 @@ class spell_dk_spell_deflection : public SpellScriptLoader
void Absorb(AuraEffect* /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
// You have a chance equal to your Parry chance
- if ((dmgInfo.GetDamageType() == SPELL_DIRECT_DAMAGE) && roll_chance_f(GetTarget()->GetUnitParryChance()))
+ if ((dmgInfo.GetDamageType() == SPELL_DIRECT_DAMAGE) && roll_chance_f(GetTarget()->GetFloatValue(PLAYER_PARRY_PERCENTAGE)))
absorbAmount = CalculatePct(dmgInfo.GetDamage(), absorbPct);
}