Skip to content

Commit

Permalink
Fix some typo from commit: 2e4111a
Browse files Browse the repository at this point in the history
Hopefully this fixes the skill learning bug from the initial commit.
  • Loading branch information
Meltie2013 authored Jan 7, 2024
1 parent 2e4111a commit d179b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Object/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4748,13 +4748,13 @@ TrainerSpellState Player::GetTrainerSpellState(TrainerSpell const* trainer_spell

// check level requirement
bool prof = SpellMgr::IsProfessionSpell(trainer_spell->spell);
if (prof || trainer_spell->reqLevel && (trainer_spell->reqLevel) < reqLevel)
if (!prof || trainer_spell->reqLevel && (trainer_spell->reqLevel) < reqLevel)
{
return TRAINER_SPELL_RED;
}

// check skill requirement
if (prof || trainer_spell->reqSkill && GetBaseSkillValue(trainer_spell->reqSkill) < trainer_spell->reqSkillValue)
if (!prof || trainer_spell->reqSkill && GetBaseSkillValue(trainer_spell->reqSkill) < trainer_spell->reqSkillValue)
{
return TRAINER_SPELL_RED;
}
Expand Down

0 comments on commit d179b02

Please sign in to comment.