From d179b02241e8710a923b63ee89cfffcb4a87af88 Mon Sep 17 00:00:00 2001 From: Meltie2013 Date: Sun, 7 Jan 2024 12:31:24 -0600 Subject: [PATCH] Fix some typo from commit: https://github.com/mangosthree/server/commit/2e4111aed436595dd93f5e89a1d690316a3345bd Hopefully this fixes the skill learning bug from the initial commit. --- src/game/Object/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index a26ad5cfd..3c140d9d7 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -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; }