Open BarbzYHOOL opened 4 years ago
it also teaches all the spells from talent
but we also have a command .learn all my talents
so it should not mix spells and talents
Confirmed on 2a17125. The command is also adding wrong spells.
Hi, the problem with the spells seems to be caused by
if (spellInfo->SpellFamilyName != family)
under static bool HandleLearnAllMySpellsCommand(ChatHandler* handler)
spellInfo->SpellFamilyName
is always 0 for those spells, while family = classEntry->spellfamily;
is the spell family of the character, defined in ChrClasses.dbc (SpellClassSet) (e.g., 7 for Druid).
I fixed spellInfo->SpellFamilyName
for the spells belonging to a single class (e.g., Path of Frost), but I'm not sure how to handle spells belonging to multiple classes (e.g., Parry)
The problem is that they are all in SPELLFAMILY_GENERIC which is why they are filtered out when checking for SpellFamilyName
SMALL DESCRIPTION:
Missing spells when you use the command
.learn all my class
. I think this affects the module mod-learn-all-spells so it's kinda importantEXPECTED BEHAVIOUR:
Learn ALL spells from the trainer (and from class quests and from class items?)
CURRENT BEHAVIOUR:
Missing spells, check the trainer, he still has spells to teach you at level 80.
STEPS TO REPRODUCE THE PROBLEM:
example with a horde druid:
.level 79
.tele elderrise
and see the missing spellsEXTRA NOTES:
BRANCH(ES):
master
AC HASH/COMMIT:
8760a9f5c9739726cda09a96c44c11d4a6813e72
OPERATING SYSTEM:
MODULES:
mod-learn-all-spells