From a8a65b3e0990e253f9193f01b4b6ea7fd6345793 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Tue, 23 Jul 2024 08:09:10 -0400 Subject: [PATCH] fix getLevel --- src/Solocraft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Solocraft.cpp b/src/Solocraft.cpp index 320ade1..cc85459 100644 --- a/src/Solocraft.cpp +++ b/src/Solocraft.cpp @@ -533,7 +533,7 @@ class SolocraftPlayerInstanceHandler : public PlayerScript } // If a player is too high level for dungeon don't buff but if in a group will count towards the group offset balancing. - if (player->getLevel() <= dunLevel + SolocraftLevelDiff) + if (player->GetLevel() <= dunLevel + SolocraftLevelDiff) { // Get Current members total difficulty offset and if it exceeds the difficulty offset of the dungeon then debuff new group members coming in until all members leave and re-enter. This happens when a player already inside dungeon invite others to the group but the player already has the full difficulty offset. @@ -628,7 +628,7 @@ class SolocraftPlayerInstanceHandler : public PlayerScript // Debuffed characters do not get spellpower if (difficulty > 0) { - SpellPowerBonus = static_cast((player->getLevel() * SoloCraftSpellMult) * difficulty); + SpellPowerBonus = static_cast((player->GetLevel() * SoloCraftSpellMult) * difficulty); player->ApplySpellPowerBonus(SpellPowerBonus, true); } }