diff mm7_5.cpp @ 1108:a1fd8045ffb1

probably erroneous semicolons removed, mace and staff stun chance work as they should
author Grumpy7
date Mon, 27 May 2013 22:25:27 +0200
parents 5d5c78088274
children cf6cd674c398
line wrap: on
line diff
--- a/mm7_5.cpp	Mon May 27 22:07:53 2013 +0200
+++ b/mm7_5.cpp	Mon May 27 22:25:27 2013 +0200
@@ -4445,7 +4445,7 @@
         case PLAYER_SKILL_STAFF:
           if (main_hand_mastery >= 3)
           {
-            if (rand() % 100 < player->GetActualSkillLevel(PLAYER_SKILL_STAFF) & 0x3F)  // stun chance when mastery >= 3
+            if (rand() % 100 < (player->GetActualSkillLevel(PLAYER_SKILL_STAFF) & 0x3F))  // stun chance when mastery >= 3
               hit_will_stun = true;
           }
         break;
@@ -4453,12 +4453,12 @@
         case PLAYER_SKILL_MACE:
           if (main_hand_mastery >= 3)
           {
-            if (rand() % 100 < player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F)
+            if (rand() % 100 < (player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F))
               hit_will_stun = true;
           }
           if (main_hand_mastery >= 4)
           {
-            if (rand() % 100 < player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F)
+            if (rand() % 100 < (player->GetActualSkillLevel(PLAYER_SKILL_MACE) & 0x3F))
               hit_will_paralyze = true;
           }
         break;