56 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
Revision
ace813516d Replaced tabs with spaces 2025-09-19 21:00:09 +02:00
ThePenguinMan96
aa6f8153a1 Tame Chat Action / Pet Chat Action (stances/commands)
Hello everyone,

I am on a quest to make bot's pets completely functional, focuses on solving issues #1351 , #1230 , and #1137 . This PR achieves the following:

1. Changes the current "pet" chat command to "tame", which is more intuitive that only hunters can use it. The modes are "tame name (name)", "tame id (id)", "tame family (family)", "tame rename (new name)", and "tame abandon". Tame abandon is new - it simply abandons the current pet. Also, now, if you type in "tame family" by itself, it will list the available families. See pictures below for examples.
2. Added new "pet" chat command, with the following modes: "pet passive", "pet aggressive", "pet defensive", "pet stance" (shows current pet stance), "pet attack", "pet follow", and "pet stay". Previously, the pet's stance was not changeable, and there were some less than desired effects from summonable pets - see the issues above.
3. New config option: AiPlayerbot.DefaultPetStance, which changes the stance that all bot's pets are summoned as. This makes sure when feral spirits or treants are summoned by shamans and druids, they are immediately set to this configured stance. Set as 1 as default, which is defensive. (0 = Passive, 1 = Defensive, 2 = Aggressive)
4. New config option: AiPlayerbot.PetChatCommandDebug, which enables debug messages for the "pet" chat command. By default it is set to 0, which is disabled, but if you would like to see when pet's stances are changed, or when you tell the pet to attack/follow/stay, and when pet spells are auto-toggled, this is an option. I made this for myself mainly to test the command - if anyone notices any wierd pet behavior, this will be an option to help them report it as well.
5. Modified FollowActions to not constantly execute the petfollow action, overriding any stay or attack commands issued.
6. Modified GenericActions to have TogglePetSpellAutoCastAction optionally log when spells are toggled based on AiPlayerbot.PetChatCommandDebug.
7. Modified PetAttackAction to not attack if the pet is set to passive, and not override the pet's stance to passive every time it was executed.
8. Modified CombatStrategy.cpp to not constantly issue the petattack command, respecting the "pet stay" and "pet follow" commands. Pets will still automatically attack the enemy if set to aggressive or defensive.
9. Warlocks, Priests, Hunters, Shamans, Mages, Druids, and DKs (all classes that have summons): Added a "new pet" trigger that executes the "set pet stance" action. The "new pet" trigger happens only once, upon summoning a pet. It sets the pet's stance from AiPlayerbot.DefaultPetStance's value.
2025-08-01 01:18:16 -07:00
ThePenguinMan96
e40c2b21f2 Channel Cancel checks for Channeled AOE DPS Spells
Hello everyone,

I liked the channel cancel I did on mage recently, where they cancel blizzard if there is only 1 enemy left. I decided to do the same for the following classes:

Druid: Hurricane
Hunter: Volley
Priest: Mind Sear
Warlock: Rain of Fire

I moved the "ChannelCancel" action to it's own file, so other classes could benefit from it. I removed it from the mageactions.
2025-07-28 01:35:56 -07:00
Yunfan Li
feda619066
Engine optimization for better performance and mem usage (#1462)
* Optimize loot

* World channel talk

* General improvement

* Engine rebuild for performance and memory usage

* Fix crash with AutoDoQuest = 0
2025-07-25 12:11:03 +02:00
Cryo81
707210f6a5
fixing multiple 'unused variable' warnings (#1224) 2025-05-01 21:00:54 +02:00
Yunfan Li
19447c3914
Enable new rpg strategy by default (#1192)
* Add RandomBotMinLevelChance

* Save mana only for healer

* Disable addclass dk for low level player

* Target selection and debuff cast with less players in group

* Change default rpg strategy and bots count in config

* Logs clean up

* Improve init=auto

* Remove login logs after initialization

* Rndbots stats for quest

* Prediction chase in reach combat

* Poor & Normal items ensurence for init=auto
2025-04-11 20:31:38 +08:00
Yunfan Li
24efa7efa2
General improvement on init and strats (#1064)
* Potions strats and potions init

* Druid and shaman spell in low level

* Ammo init improvement

* Rogue low level

* Fix melee attack action (for caster with no mana)

* Disable pet spells that reduce dps

* Talents improvement

* Remove CanFreeMove check

* Reduce penalty for non-dagger weapon for rogue
2025-03-08 12:36:06 +01:00
Yunfan Li
bc33851189 Mage improvement (fire mage aoe) 2025-01-19 20:06:10 +08:00
Yunfan Li
b0b3fef222
Revert "Paladins use Greater Blessings" 2025-01-04 21:24:12 +08:00
avirar
626cf44ad5
OnParty 2025-01-04 18:18:37 +11:00
avirar
34210e0508
Prayer of Fortitude 2025-01-04 18:16:33 +11:00
avirar
4eb302b95e
Prayer of Fortitude 2025-01-04 18:16:24 +11:00
Yunfan Li
11377436cd [Strategy] Rename "assist dps" to "healer dps" 2024-10-04 21:49:47 +08:00
Yunfan Li
21e17e163b [Spell] Healer spell enhancement 2024-10-04 20:48:29 +08:00
Yunfan Li
db9b1115cb [Spell] Priest prayer of mending buff owner 2024-10-04 18:56:44 +08:00
Yunfan Li
37c5c1dcdf [Spell] Fix alternative healing spell 2024-10-04 14:38:09 +08:00
Yunfan Li
a0dd00bba1 [Spell] Handle tree of life and assist dps 2024-10-04 14:14:16 +08:00
Yunfan Li
008d098eda [Assist Dps] Healer assist dps strats 2024-10-04 14:14:16 +08:00
Yunfan Li
b2e6b383f1 [Crash fix] Party buff check 2024-10-03 12:23:32 +08:00
Yunfan Li
b81ccfa829 Reduce inner focus usage 2024-09-09 22:34:16 +08:00
Yunfan Li
a1cb9dea05 Improve class spell and use trinket 2024-08-14 18:37:21 +08:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
Yunfan Li
7325ba7dcb [Class spell] Aoe threat check 2024-07-07 21:51:19 +08:00
Yunfan Li
7acd60100f [Class spell] Paryer of healing trigger 2024-06-10 19:26:02 +08:00
Yunfan Li
bbbcfb4594 [Class spell] Prayer of healing cast trigger 2024-06-10 18:46:46 +08:00
Yunfan Li
26faac914e [Class spell] Fix healing priests stop casting due to threat 2024-05-07 22:21:38 +08:00
Yunfan Li
5f31941820 Auto save mana strategy 2024-03-23 18:11:46 +08:00
Yunfan Li
b7b334af99 PremadeSpecGlyph config (unimplemented) 2024-03-05 00:11:53 +08:00
Yunfan Li
27569f431f Naxx thaddius strategy 2024-02-09 15:42:36 +08:00
Yunfan Li
9e78a0b36a Pet attack (fix shadowfiend) 2024-02-08 00:36:16 +08:00
Yunfan Li
111109b112 Raise flee action relevance 2023-12-22 00:05:09 +08:00
Yunfan Li
748801b10b fix action node factory 2023-11-10 20:10:03 +08:00
Yunfan Li
7063e5e00b remove meaningless flee 2023-11-10 19:46:48 +08:00
Yunfan Li
10462126b4 miscs 2023-10-25 20:29:32 +08:00
Yunfan Li
45d0ae00ab default actions 2023-10-22 12:50:17 +08:00
Yunfan Li
f303a9e83a shadow priest shoot 2023-10-20 22:42:36 +08:00
Yunfan Li
bb1ea0c395 naxxramas gluth 2023-09-03 17:52:44 +08:00
Yunfan Li
14b94e20fb major class spells 2023-09-02 22:37:11 +08:00
Yunfan Li
62e49a966d mind sear for shadow priest 2023-08-29 22:20:40 +08:00
Yunfan Li
1136b7bfdc debuff on melee attackers 2023-08-28 17:28:36 +08:00
Yunfan Li
fca4d17c97 test: ms_time 2023-08-02 03:46:15 +08:00
Yunfan Li
252b2f259c fix hunter auto shot 2023-07-30 15:46:11 +08:00
Yunfan Li
e93b1edcd5 fix strategies conflict for rndbot 2023-07-30 14:33:52 +08:00
Yunfan Li
951d8be038 miscs(class spell) 2023-07-24 20:35:48 +08:00
Yunfan Li
8c914e5723 sapphiron strategy fix 2023-07-24 15:58:48 +08:00
Yunfan Li
f8cc3810b6 Discipline priest shield 2023-07-24 14:42:40 +08:00
Yunfan Li
68adc0e81a increase revive spell priority 2023-07-15 11:28:39 +08:00
Yunfan Li
d947d457a5 feat(strategy): priest aoe heal 2023-07-05 15:12:34 +08:00