diff options
| author | Shauren <shauren.trinity@gmail.com> | 2024-05-01 22:26:53 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2024-05-01 22:26:53 +0200 |
| commit | a39d0db9ec64f6bf38716abaade5b7835f2db338 (patch) | |
| tree | 1e18f96b3600ab02d9cb8fc6288ac0cded23b6ce /src/server/database | |
| parent | cdc6719b8368907292f090978f6bdd6b8c73834d (diff) | |
Core/Spells: Implemented evoker empower spell mechanic
Diffstat (limited to 'src/server/database')
| -rw-r--r-- | src/server/database/Database/Implementation/HotfixDatabase.cpp | 9 | ||||
| -rw-r--r-- | src/server/database/Database/Implementation/HotfixDatabase.h | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp index 4e5bec49b13..ed55602c4b7 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.cpp +++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp @@ -1507,6 +1507,15 @@ void HotfixDatabaseConnection::DoPrepareStatements() "ImplicitTarget2, SpellID FROM spell_effect WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_EFFECT, "SELECT MAX(ID) + 1 FROM spell_effect", CONNECTION_SYNCH); + // SpellEmpower.db2 + PrepareStatement(HOTFIX_SEL_SPELL_EMPOWER, "SELECT ID, SpellID, Unused1000 FROM spell_empower WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_EMPOWER, "SELECT MAX(ID) + 1 FROM spell_empower", CONNECTION_SYNCH); + + // SpellEmpowerStage.db2 + PrepareStatement(HOTFIX_SEL_SPELL_EMPOWER_STAGE, "SELECT ID, Stage, DurationMs, SpellEmpowerID FROM spell_empower_stage" + " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_EMPOWER_STAGE, "SELECT MAX(ID) + 1 FROM spell_empower_stage", CONNECTION_SYNCH); + // SpellEquippedItems.db2 PrepareStatement(HOTFIX_SEL_SPELL_EQUIPPED_ITEMS, "SELECT ID, SpellID, EquippedItemClass, EquippedItemInvTypes, EquippedItemSubclass" " FROM spell_equipped_items WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); diff --git a/src/server/database/Database/Implementation/HotfixDatabase.h b/src/server/database/Database/Implementation/HotfixDatabase.h index 7b1b6804571..d1b3f022312 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.h +++ b/src/server/database/Database/Implementation/HotfixDatabase.h @@ -873,6 +873,12 @@ enum HotfixDatabaseStatements : uint32 HOTFIX_SEL_SPELL_EFFECT, HOTFIX_SEL_SPELL_EFFECT_MAX_ID, + HOTFIX_SEL_SPELL_EMPOWER, + HOTFIX_SEL_SPELL_EMPOWER_MAX_ID, + + HOTFIX_SEL_SPELL_EMPOWER_STAGE, + HOTFIX_SEL_SPELL_EMPOWER_STAGE_MAX_ID, + HOTFIX_SEL_SPELL_EQUIPPED_ITEMS, HOTFIX_SEL_SPELL_EQUIPPED_ITEMS_MAX_ID, |
