* Update AuctionHouseHandler.cpp
* feat(warden): block PQR
* wip
* Update Warden.cpp
* Core/Warden: minor preperation
* Core/Misc: implemented some needed container wrapper functions
* Core/Warden: more preperations
* Core/Warden: more rework
* LUA checks now are splitted to seperate config
* LUA checks are always in front of queue
* Fixed "Other" checks
* Fixed PQR detection
* Core/Warden: adjusted and optimized
* Core/Warden: optimization
* Core/Warden: more optimization
* Core/Warden: use warden comments in ban reason
* Core/Warden: more warden work
* Core/Warden: more optimizations
* Core/Warden: more refactors
* Core/Warden: some more refactors + use default SHA definitions
* Core/Warden: more refactoring
* Core/Warden: fixed PQR detection again
* Core/Warden: improved detection logging
* Core/Misc: removed SmartEnums - we do not need it here + maybe should go as seperate commit
* Core/Warden: fixed some warnings
* Core/Warden: codestyle
* Core/Warden: include warden check comment to console logs
* Core/Warden: minor adjustment for previous commit
* Core/Warden: fixed static analysis warning
* Core/Warden: compilers, you're drunk this time... function is not unused...
* Core/Warden: minor correction for logs
* Core/Warden: one more improvement for logs
* Core/Warden: added missing overrides
* Core/Warden: some codestyle
* Core/Misc: more codestyle
* Core/Misc: more codestyle!
* Core/Warden: restored default config options... (if you change it, change in core source too)
* Core/Warden: addition to previous commit
* DB/Warden: added EWT and WOWPlus checks (provided by lineagedr)
* DB/Warden: addition to previous commit
* fix: codestyle
* Core/Warden: fixed build when extra logs are enabled in cmake
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
PlayerScript#OnFirstLogin was broken in that if you tried to teach the
player a spell or give an item to him that change wouldn't persist.
Meaning that the next time the Player would log in, his awarded spells
or items would be gone.
Meanwhile PlayerScript#OnLogin didn't have this behavior meaning
that the sematics of PlayerScript#OnFirstLogin and PlayerScript#OnLogin
where very different, which is unexpected.
This issue was caused by an implementation detail in Player#learnSpell
(and similiar) which behaves differently depending on
Player#isBeingLoaded phase. This code change makes its that
PlayerOnFirstLogin hook executes when Player#isBeingLoaded == false
fixing the issue.
Alternatives: The fact that Player#learnSpells and others behave
differently depending on the load phase is questionable and from my
research it seems like this impl detail is only used when giving the
player his template spells. We could add a overload to
Player#learnSpell with a flag like `isSpellTemporary` and make
the template spells loading use it. Then we would be able to remove
this implicit temporary spell mechanism when Player#isBeingLoaded
thing. However this is a deeper change and not worth the risk.