summaryrefslogtreecommitdiff
path: root/src/server/database/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorNathan Handley <NathanHandley@users.noreply.github.com>2024-02-10 09:25:00 -0600
committerGitHub <noreply@github.com>2024-02-10 12:25:00 -0300
commitdf33a57b78083b985905bc99baf573cd7fc812b9 (patch)
treefdfdbce7d46fd960b39d78421d1b97c31a91d89b /src/server/database/Database/MySQLConnection.cpp
parentc47c945aa4200829fbe1c6b11a2cc028d3420b9b (diff)
feat(Core/Unit): New helper IsClass and script hook OnPlayerIsClass (#18243)
* Class Comparison Logic Encapsulation - Parity * Add Context to IsClass * Add Unit IsClass script hook * Replace additional getClass with IsClass * Update CanUseItem to replace getClass with IsClass * Add separate context for pet vs ability * Change Create to Init since not all referenced contexts are creation * Align spacing in ClassContext * Drop context on LFGManager max power * Update IsClass context that wraps around Missle Barrage * Rename context for swapping weapons * Be more specific than CLASS_CONTEXT_TALENT * Remove duplicate context * Moved IsClass Hook to Player * Removed unused parameter in virtual base function * Added maybe_unused to IsClass virtual in order to compile To match the override signature, the virtual base needs to include the parameter in question, so using [maybe_unused] to signal to the compiler to allow it * Remove extra blank line * Add ABILITY_REACTIVE context * Add context for PET_CHARM * Remove explicit nullopt check per review * Code Readability - Change if to if else in pet Due to the return pattern, this doesn't change functionality in any way * Add OnPlayer to disambiguate --------- Co-authored-by: NathanHandley <nathanhandley@protonmail.com>
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
0 files changed, 0 insertions, 0 deletions