Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
Idealize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaddy committed Jan 28, 2022
1 parent c11fbf1 commit 9b1f216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content/ArcaneDiscoveries/Idealize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static void Postfix(AddStatBonus __instance)
if (__instance.Descriptor == ModifierDescriptor.Enhancement && __instance.Context.SourceAbility.IsSpell &&
__instance.Context.SpellSchool == SpellSchool.Transmutation)
{
var wiz_lv = __instance.Owner.Progression.GetClassLevel(DB.GetClass("Wizard"));
var wiz_lv = __instance.Owner.Progression.GetClassLevel(DB.GetClass("Wizard Class"));
var new_bonus = wiz_lv > 19 ? __instance.Value + 4 : __instance.Value + 2;
__instance.Owner.Stats.GetStat(__instance.Stat).RemoveModifiersFrom(__instance.Runtime);
__instance.Owner.Stats.GetStat(__instance.Stat).AddModifierUnique(new_bonus, __instance.Runtime, ModifierDescriptor.Enhancement);
Expand Down

0 comments on commit 9b1f216

Please sign in to comment.