fix(Core/Unit): SPELLMOD_RESIST_MISS_CHANCE should decrease miss chance (#18849)

fix: hitchance should decrease misschance
This commit is contained in:
Jelle Meeus
2024-05-11 14:51:17 +02:00
committed by GitHub
parent 45ad5acddb
commit ac203da3d3

View File

@@ -19281,7 +19281,7 @@ float Unit::MeleeSpellMissChance(Unit const* victim, WeaponAttackType attType, i
modOwner->ApplySpellMod(spellId, SPELLMOD_RESIST_MISS_CHANCE, hitChance);
}
missChance += hitChance - 100.0f;
missChance -= hitChance - 100.0f;
if (attType == RANGED_ATTACK)
missChance -= m_modRangedHitChance;