Replies: 3 comments 7 replies
-
+static constexpr int8 SPELL_HIT_CAP_PERCENT = 5; // 5% hit chance
+bool canMiss = int8(m_modSpellHitChance) <= SPELL_HIT_CAP_PERCENT;
-if (rand < tmp)
+if ((rand < tmp) && !canMiss)
+ return SPELL_MISS_MISS; |
Beta Was this translation helpful? Give feedback.
4 replies
-
thanks helped, figured out how to fix |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I fix this myself?
#7672
Beta Was this translation helpful? Give feedback.
All reactions