Skip to content

Commit

Permalink
Remove deprecated function/method calls (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldelago authored Jul 24, 2024
1 parent 84f2e1a commit de2eda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Solocraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -628,7 +628,7 @@ class SolocraftPlayerInstanceHandler : public PlayerScript
// Debuffed characters do not get spellpower
if (difficulty > 0)
{
SpellPowerBonus = static_cast<int>((player->getLevel() * SoloCraftSpellMult) * difficulty);
SpellPowerBonus = static_cast<int>((player->GetLevel() * SoloCraftSpellMult) * difficulty);
player->ApplySpellPowerBonus(SpellPowerBonus, true);
}
}
Expand Down

0 comments on commit de2eda4

Please sign in to comment.