refactor and make DisenchantAll default to ignoring soulbound

This commit is contained in:
avitasia
2025-12-26 15:10:20 -08:00
parent d9e764181c
commit 84520d1c20
9 changed files with 8750 additions and 8719 deletions
+8
View File
@@ -66,6 +66,7 @@ namespace Nampower {
uint32_t gDisenchantItemId = 0;
int32_t gDisenchantQuality = -1; // -1 = unset
bool gDisenchantIncludeSoulbound = false;
uint32_t gNextDisenchantTimeMs = 0;
bool gForceQueueCast;
@@ -370,6 +371,13 @@ namespace Nampower {
gCastData.targetingSpellId = 0;
}
void ResetDisenchantState() {
gDisenchantItemId = 0;
gDisenchantQuality = -1;
gDisenchantIncludeSoulbound = false;
gNextDisenchantTimeMs = 0;
}
void checkForStopChanneling() {
if (gUserSettings.queueChannelingSpells && IsNonSwingSpellQueued()) {
// for channels just end channeling