mirror of
https://github.com/brues-code/nampower.git
synced 2026-10-05 21:20:01 +00:00
refactor and make DisenchantAll default to ignoring soulbound
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user