Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated function/method calls #45

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading