Commit Graph

21 Commits

Author SHA1 Message Date
bash
0cc15411c1 license update (#1674) 2025-09-30 15:19:44 +02:00
Revision
fcb956ec1b Removed unnecessary spaces 2025-09-19 22:43:50 +02:00
Wishmaster117
55a37c48eb Add /w botname "glyphs" and "glyph equip" commands 2025-07-26 00:15:46 +02:00
ThePenguinMan96
3f7814abb4 PVP Talents and InitGlyph changes
PVP Talents and InitGlyph changes

This PR adds 3 pvp specs for each class, as well as their glyphs. It also adds exceptions to the Initglyph function, based on pvp-based talents for each class.

conf\playerbots.conf.dist - Adds 3 pvp specs/glyphs for each class.

src\factory\PlayerbotFactory.cpp - InitGlyph in its current form is unable to correctly assign glyphs on specindexes (or tab) over 2 without an exception. That is why this exception already exists in the code:

if (bot->getClass() == CLASS_DRUID && tab == DRUID_TAB_FERAL && bot->GetLevel() >= 20 && !bot->HasAura(16931))
        tab = 3;

This checks if the class is a Druid, if the tab is feral, if they are equal to or above level 20, and they don't have the Thick Hide talent. If all of these are true, then it manually sets the tab = 3. I first discovered this when I noticed that my frostfire mage would never be assigned the correct glyphs in the config - aka glyph of frosfire. It is because the frostfire spec is tab = 3, and no such logic exists. When I started adding the additional pvp specs, I noticed that they never would assign the correct glyphs. I had to add an exception to all pvp specs, and have them check for certain pvp related talents to correlate the tab manually. This is because tab is derived from the AiFactory::GetPlayerSpecTab(bot); function. The only possible tab values from this function are 0, 1, and 2.
**TLDR: Added code to support Frostfire Mage, dual-aura Blood DK, and all the PvP specs for correct glyph assignment.**

src\strategy\actions\ChangeTalentsAction.cpp: When you pick a spec with "talents spec" function, such as "talents spec arms pve", it will now correctly assign glyphs without the player having to execute the maintenance command. Setting the InitGlyphs to false removes prior glyphs.

src\strategy\actions\TrainerAction.cpp - Changed factory.InitGlyphs(true); to factory.InitGlyphs(false);. This makes it so all prior glyphs that were assigned are correctly deleted. I first noticed this when switching between specs and using the maintenance command - I had to login to the bot and manually delete the old glyphs, in order for the maintenance command to assign the new, correct glyphs.
2025-07-01 14:35:16 -07:00
Cryo81
07e4dec70d Warning fix + ilvl function fix (#1210)
* 1 variable order warning fixed
70 unused variable warning fixed

* Fixed GetEquipGearScore function

---------

Co-authored-by: Julien MAS <julien.mas81@gmail.com>
2025-04-20 14:26:42 +08:00
Yunfan Li
b87ca9da4c Icecrown gunship strategy 2024-09-23 14:00:24 +08:00
Yunfan Li
52bd378719 Rewrite stats weight and item score calculation 2024-08-08 20:36:32 +08:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
Revision
838bfe333d Fix: Updated to work with newer commits of AzerothCore 2024-07-22 00:39:06 +02:00
Yunfan Li
b1f5c1313c [Strategy] Enable cat strategy, remove threat by default, reset strategy on talents change 2024-07-09 17:33:09 +08:00
Yunfan Li
fb404b27a9 [Initialization] Glyphs remove and dual spec 2024-06-26 20:30:12 +08:00
Yunfan Li
5855d4e8fe [Talents] Switch command 2024-06-03 23:10:58 +08:00
Yunfan Li
dc4ec06164 Fix rotation class imbalance 2024-01-15 13:21:49 +08:00
Yunfan Li
8d4064d84c Fix spec list 2024-01-14 23:39:26 +08:00
Yunfan Li
1d21feb1ea Rebuild talents command 2024-01-14 14:54:48 +08:00
Yunfan Li
3b7d9364ef Init pet talents 2023-12-24 00:23:01 +08:00
Yunfan Li
9701af6f95 trainer learn command 2023-10-28 22:34:27 +08:00
Yunfan Li
4654218d39 InitTalentsTree 2023-08-09 12:39:00 +08:00
Yunfan Li
d31fbc0353 automatically action for random bots 2023-08-05 18:41:15 +08:00
Yunfan Li
043023da95 change talents spec command 2023-07-24 19:53:22 +08:00
UltraNix
b952636f0d Big update. 2022-03-12 22:27:09 +01:00