mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
Compare commits
6 Commits
db8bb21fd4
...
ef95c718de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef95c718de | ||
|
|
4caa189890 | ||
|
|
47456a720e | ||
|
|
441208b272 | ||
|
|
eaf6bf12ec | ||
|
|
39b6386af3 |
@ -1956,10 +1956,11 @@ void Unit::DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss)
|
||||
Probability = 0.65f * victim->GetLevel() + 0.5f;
|
||||
|
||||
uint32 VictimDefense = victim->GetDefenseSkillValue();
|
||||
uint32 VictimAuraDefense = -victim->GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE) * 25;
|
||||
uint32 AttackerMeleeSkill = GetUnitMeleeSkill();
|
||||
|
||||
// xinef: fix daze mechanics
|
||||
Probability -= ((float)VictimDefense - AttackerMeleeSkill) * 0.1428f;
|
||||
Probability -= ((float)VictimDefense + (float)VictimAuraDefense - AttackerMeleeSkill) * 0.1428f;
|
||||
|
||||
if (Probability > 40.0f)
|
||||
Probability = 40.0f;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user