mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Lines 481 through 484 are the only substantive changes. Bots were having the potion strategy added in arenas, and since potions are not allowed in arenas, this caused them to lock up and attempt to repeatedly drink potions when under the applicable health or mana trigger thresholds. Now they won't have the potion strategy in arenas. Otherwise, I noticed a bunch of magic numbers for spec tabs and so went ahead and did some refactoring: 1. All references to spec tab numbers now use the appropriate constant name. 2. A bunch of extra braces were deleted. 3. DEATHKNIGHT_TAB was changed to DEATH_KNIGHT_TAB, and HUNTER_TAB_BEASTMASTERY was changed to HUNTER_TAB_BEAST_MASTERY, to reflect the correct names of the class and spec. 4. Deleted some comments that were clearly unneeded. There's much more that can be cleaned up, and probably the entire logic sequence for adding/removing strategies in AiFactory.cpp can be redone, but that's above my pay grade.
85 KiB
85 KiB