Repository navigation
Professions NPC: Fishing is a secondary profession too - #3575
Merged
ratkosrb merged 1 commit intoOct 21, 2026
Merged
Conversation
CompleteLearnProfession let a character with two primary professions learn Cooking and First Aid but refused Fishing with "You already know two primary professions.", although Fishing is a secondary skill like the other two (SKILL_CATEGORY_SECONDARY). Learning Fishing first and the professions afterwards worked, so only the order decided.
Stoabrogga
pushed a commit
to Stoabrogga/vmangos
that referenced
this pull request
Oct 27, 2026
(cherry picked from commit a9fa07a)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🍰 Pullrequest
The custom Professions NPC (
custom_professions_npc,CompleteLearnProfessioninsrc/scripts/custom/custom_creatures.cpp) exempts Cooking and First Aid from the two-primary-professions limit but not Fishing. A character that already knows two primary professions gets "You already know two primary professions." when it picks Fishing. Fishing is a secondary skill like the other two, and learning Fishing first and the primary professions afterwards works, so only the order decided. This addsSKILL_FISHINGto the exemption.Proof
SkillLine.dbc(5875), Fishing (356), Cooking (185) and First Aid (129) all have category 9,SKILL_CATEGORY_SECONDARY. The primary professions (Blacksmithing 164, Tailoring 197, Engineering 202, Enchanting 333, …) have category 11,SKILL_CATEGORY_PROFESSION.IsPrimaryProfessionSkillinsrc/game/Spells/SpellMgr.hreturns false for any other category, soMaxPrimaryTradeSkillnever applies to Fishing anywhere else.Issues
How2Test
.learn all_recipes Engineeringand.learn all_recipes Enchanting. Talk to the Professions NPC and pick Fishing.Todo / Checklist
SKILL_FISHINGis already used in the same file (GossipSelect_ProfessionNPC, case 13).🤖 Generated with Claude Code