From e525c22d85c6959f2cc54543e984f54702b1dc59 Mon Sep 17 00:00:00 2001 From: crow Date: Sat, 27 Sep 2025 23:11:47 -0500 Subject: [PATCH] Fix SPEC_TAB names --- src/AiFactory.cpp | 4 ++-- src/PlayerbotAI.cpp | 2 +- src/PlayerbotAI.h | 8 ++++---- src/factory/StatsWeightCalculator.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/AiFactory.cpp b/src/AiFactory.cpp index 9bf3c551..75d51bf1 100644 --- a/src/AiFactory.cpp +++ b/src/AiFactory.cpp @@ -295,7 +295,7 @@ void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const fa { engine->addStrategiesNoInit("dps", "shadow debuff", "shadow aoe", nullptr); } - else if (tab == PRIEST_TAB_DISIPLINE) + else if (tab == PRIEST_TAB_DISCIPLINE) { engine->addStrategiesNoInit("heal", nullptr); } @@ -607,7 +607,7 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const nonCombatEngine->addStrategy("dps assist", false); break; case CLASS_WARLOCK: - if (tab == WARLOCK_TAB_AFFLICATION) + if (tab == WARLOCK_TAB_AFFLICTION) { nonCombatEngine->addStrategiesNoInit("felhunter", "spellstone", nullptr); } diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index c2c34a11..d529ae34 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -2085,7 +2085,7 @@ bool PlayerbotAI::IsHeal(Player* player, bool bySpec) switch (player->getClass()) { case CLASS_PRIEST: - if (tab == PRIEST_TAB_DISIPLINE || tab == PRIEST_TAB_HOLY) + if (tab == PRIEST_TAB_DISCIPLINE || tab == PRIEST_TAB_HOLY) { return true; } diff --git a/src/PlayerbotAI.h b/src/PlayerbotAI.h index 67d72454..f112f9d0 100644 --- a/src/PlayerbotAI.h +++ b/src/PlayerbotAI.h @@ -276,7 +276,7 @@ enum BotRoles : uint8 enum HUNTER_TABS { - HUNTER_TAB_BEASTMASTER, + HUNTER_TAB_BEASTMASTERY, HUNTER_TAB_MARKSMANSHIP, HUNTER_TAB_SURVIVAL, }; @@ -285,12 +285,12 @@ enum ROGUE_TABS { ROGUE_TAB_ASSASSINATION, ROGUE_TAB_COMBAT, - ROGUE_TAB_SUBTLETY + ROGUE_TAB_SUBTLETY, }; enum PRIEST_TABS { - PRIEST_TAB_DISIPLINE, + PRIEST_TAB_DISCIPLINE, PRIEST_TAB_HOLY, PRIEST_TAB_SHADOW, }; @@ -332,7 +332,7 @@ enum PALADIN_TABS enum WARLOCK_TABS { - WARLOCK_TAB_AFFLICATION, + WARLOCK_TAB_AFFLICTION, WARLOCK_TAB_DEMONOLOGY, WARLOCK_TAB_DESTRUCTION, }; diff --git a/src/factory/StatsWeightCalculator.cpp b/src/factory/StatsWeightCalculator.cpp index 19491256..2963c741 100644 --- a/src/factory/StatsWeightCalculator.cpp +++ b/src/factory/StatsWeightCalculator.cpp @@ -184,7 +184,7 @@ void StatsWeightCalculator::GenerateBasicWeights(Player* player) stats_weights_[STATS_TYPE_MELEE_DPS] += 0.01f; stats_weights_[STATS_TYPE_RANGED_DPS] += 0.01f; - if (cls == CLASS_HUNTER && (tab == HUNTER_TAB_BEASTMASTER || tab == HUNTER_TAB_SURVIVAL)) + if (cls == CLASS_HUNTER && (tab == HUNTER_TAB_BEASTMASTERY || tab == HUNTER_TAB_SURVIVAL)) { stats_weights_[STATS_TYPE_AGILITY] += 2.5f; stats_weights_[STATS_TYPE_ATTACK_POWER] += 1.0f;