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
Core: Trigger OnSave hook for PlayerScript #11627
Conversation
Hmm, I see. Modified it to remove the original hook call. |
is it called even when the player is created ? |
Yes, since it doesnt check for the create flag. |
Would be better to not save on player creation |
Dont trigger save hook on player create
Anything to get this through : | |
Lol, i could be an asshole and ask you to squash these into one commit ... But i won't :p |
Core/Players: Call sScriptMgr::OnPlayerSave inside Player::SaveToDB rather than before calling it.
I was kinda waiting for that, but thanks ;) |
Core/Players: Call sScriptMgr::OnPlayerSave inside Player::SaveToDB rather than before calling it.
OnSave is not triggered anywhere.
This adds the call to the SaveToDB function for player.
Unsure if should be triggered elsewhere as well :)