@@ -1118,34 +1118,17 @@ function CSC_PaperDollFrame_SetManaRegen(statFrame, unit)
1118
1118
GameTooltip :Hide ()
1119
1119
end )
1120
1120
1121
- -- There is a bug in GetManaRegen() so I have to manually calculate mp5
1122
- -- base == casting always and this is wrong
1121
+ -- It looks like Blizzard fixed this. It also takes into account mana regen from talents and gear
1123
1122
local base , casting = GetManaRegen ();
1124
-
1125
- -- to avoid the wrongly reported "0" regen after an update
1126
- if base < 1 then base = g_lastSeenBaseManaRegen end
1127
- if casting < 1 then casting = g_lastSeenBaseManaRegen end
1128
- g_lastSeenBaseManaRegen = base ;
1129
- g_lastSeenCastingManaRegen = casting ;
1130
-
1131
- local mp5FromGear = CSC_GetMP5FromGear (unit ) + CSC_GetMP5FromSetBonus (unit );
1132
- local mp5ModifierCasting = CSC_GetMP5ModifierFromTalents (unit ) + CSC_GetMP5ModifierFromSetBonus (unit );
1123
+ local mp5FromGear = CSC_GetMP5FromGear (unit ) + CSC_GetMP5FromSetBonus (unit ); -- gems not included
1133
1124
1134
- local mp5FromAuras , mp5CombatModifier = CSC_GetMP5FromAuras ();
1135
- if mp5CombatModifier > 0 then
1136
- mp5ModifierCasting = mp5ModifierCasting + mp5CombatModifier ;
1137
- end
1138
-
1139
- -- All mana regen stats are displayed as mana/5 sec.
1140
- local regenWhenNotCasting = (base * 5.0 ) + mp5FromGear + mp5FromAuras ;
1141
- casting = mp5FromGear + mp5FromAuras ; -- if GetManaRegen() gets fixed ever, this should be changed
1125
+ -- Convert mana per sec to mp5
1126
+ base = base * 5.0 ;
1127
+ casting = casting * 5.0 ;
1142
1128
1143
- if mp5ModifierCasting > 0 then
1144
- casting = casting + base * mp5ModifierCasting * 5.0 ;
1145
- end
1146
-
1147
- local regenWhenNotCastingText = BreakUpLargeNumbers (regenWhenNotCasting );
1129
+ local regenWhenNotCastingText = BreakUpLargeNumbers (base );
1148
1130
local castingText = BreakUpLargeNumbers (casting );
1131
+
1149
1132
-- While Casting mana regen is most important to the player, so we display it as the main value
1150
1133
CSC_PaperDollFrame_SetLabelAndText (statFrame , MANA_REGEN , castingText , false );
1151
1134
statFrame .mp5FromGear = BreakUpLargeNumbers (mp5FromGear );
0 commit comments