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

Native Racials Are Relearned Upon Logout #13

Open
cdenq opened this issue Aug 28, 2023 · 1 comment
Open

Native Racials Are Relearned Upon Logout #13

cdenq opened this issue Aug 28, 2023 · 1 comment

Comments

@cdenq
Copy link
Contributor

cdenq commented Aug 28, 2023

For example, if you are a blood elf and you swap racials to any other race, and then relog, you will relearn the blood elf racials (and subsequently have 2 racials).

EDIT:
After some investigation, I believe this is not an issue with this mod, but rather with the source-code from AzerothCore.

One possible workaround is the following:
(1) add a new data column in the SQL that records the player's "race power" (this defaults to their native racial)
(2) when you use the racial traits swapper, it will overwrite that value for the "race power"
(3) introduce an "on login" script that unlearns all racial abilities, queries the "race power", and then learns the set of skills from that race power

E.g. I make an Orc, which has the default/innate racial: Blood Fury (+ all the other abilities). My "race power" is set to "1", which internally maps to "Orc". Ingame, I change my powers to Dranei, setting my "race power" to "6", which internally maps to "Dranei". When I relog, the "on login" script wipes all racial abilities, checks my "race power" and sees "Dranei", and then adds the racial associated with Dranei.

@Tilenozz
Copy link

Tilenozz commented Feb 28, 2024

Bug seems not fixed yet. Any chance to get it fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants