Commit Graph

47 Commits

Author SHA1 Message Date
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
avirar
a0278f1efb Hunter ammo equip bug and other issues with BuyAction.cpp (#986)
Resolves #947

Equip logic was failing as projectiles were never returning ITEM_USAGE_EQUIP in ItemUsageValue.cpp, added two cases where equip is returned:

If no ammo is currently set
If new ammo has higher DPS than old/currently equipped ammo
While testing this using "b [itemlink]" and "b vendor" to purchase arrows I noticed some issues with BuyAction.cpp and have resolved them:

Bots will now perform the "equip upgrades" action for any bought item that has an equip usage
When using "b vendor" to buy all useful items from vendors within interaction distance, it now sorts the list of available items by calculated item score and buys the highest scoring item (if it is higher than the currently equipped item) for each slot. It should not buy multiple items for the same slot anymore, saving gold/emblems/etc.
"b vendor" will now only attempt to buy 1 of each item. Consumable and projectile item types can be bought up to 10 times per execution as long as it is still useful to buy the item in each iteration of the for loop. All items were following this behaviour previously and since the equip command was only given after the for loop it would buy 10 of an item before triggering it wasn't useful to buy more.
And finally, resolved issues where a bot runs out of ammo mid-fight:

Re-enabled combat and non-combat "no ammo" strategies to perform "equip upgrades" action.
Modified GenericTriggers.cpp; AmmoCountTrigger::IsActive to return true when the bot has ammo but it is not equipped yet.
2025-02-21 18:32:10 +01:00
Yunfan Li
bb729e35b9 Fix stuck on knockback, enhance movement & flee and trap weave strats (#980)
* Hunter trap weave strats

* Do not allow actions to stack

* Remove trap weave by default

* Refactor on Engine

Co-authored-by: SaW <swerkhoven@outlook.com>

* Remove unused funcs in Queue

* Remove ExpireActionTime config

---------

Co-authored-by: SaW <swerkhoven@outlook.com>
2025-02-18 22:55:44 +08:00
Yunfan Li
006e0a03c8 Improvement hunter track and spell 2025-01-19 17:10:10 +08:00
Yunfan Li
406949f6dd Misdirection and tricks of the trade 2024-09-04 20:08:44 +08:00
Yunfan Li
6789237843 Dps hunter 2024-09-04 15:12:39 +08:00
Yunfan Li
a1cb9dea05 Improve class spell and use trinket 2024-08-14 18:37:21 +08:00
Yunfan Li
264c533d1f Fix move delay and reach combat 2024-08-06 00:44:50 +08:00
Yunfan Li
085b2e7f19 Improve containsstrategy performance 2024-08-05 22:07:07 +08:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
Yunfan Li
b4201e1d84 [Misc] Init bag, hunter spell 2024-07-21 22:14:15 +08:00
Yunfan Li
51a88063f8 [Class spell] Hunter auto shot 2024-06-23 16:29:46 +08:00
Yunfan Li
0629c106ae Hunter crash fix 2024-04-18 21:07:13 +08:00
Yunfan Li
aab51a8182 Spell casting 2024-03-12 18:39:23 +08:00
Yunfan Li
2a44fb1885 Merge branch 'master' of github.com:liyunfan1223/mod-playerbots 2023-12-25 18:49:05 +08:00
Yunfan Li
3525e30305 Hunter pet happiness set 2023-12-25 18:48:51 +08:00
Yunfan Li
98c87300b0 Better too close distance calculation 2023-12-24 11:54:34 +08:00
Yunfan Li
111109b112 Raise flee action relevance 2023-12-22 00:05:09 +08:00
Yunfan Li
9dab10a5df Hunter melee 2023-12-19 20:10:43 +08:00
Yunfan Li
c56b1558b6 aspect of the monkey 2023-12-18 23:30:07 +08:00
Yunfan Li
af15a691b6 SightDistance, FollowChatShortcutAction, concussive shot 2023-12-18 22:32:48 +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
e727397963 target && hunter auto shoot 2023-10-22 15:19:12 +08:00
Yunfan Li
45d0ae00ab default actions 2023-10-22 12:50:17 +08:00
Yunfan Li
a63c6b6709 smarter dps target and tank target 2023-10-22 01:27:37 +08:00
Yunfan Li
4672b3edcf spell modification 2023-10-04 22:32:04 +08:00
Yunfan Li
e5a7f0448d bestial wrath 2023-10-04 13:03:00 +08:00
Yunfan Li
69ff31b764 hunter auto shot 2023-10-04 10:17:55 +08:00
Yunfan Li
243a4df967 optimize class spell 2023-09-08 12:44:38 +08:00
Yunfan Li
5e676e60e0 debuff on attacker 2023-09-05 01:41:13 +08:00
Yunfan Li
bb1ea0c395 naxxramas gluth 2023-09-03 17:52:44 +08:00
Yunfan Li
46b94824e4 miscs: movement, coredump fix, rndbot 2023-08-02 16:16:56 +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
8c914e5723 sapphiron strategy fix 2023-07-24 15:58:48 +08:00
Yunfan Li
7c70f42f34 refactor: naxxramas and kel'thuzad strategy 2023-07-18 17:58:51 +08:00
Yunfan Li
98e46a3d02 miscs(raid strategy, distance triggers, etc) 2023-06-06 00:11:35 +08:00
Yunfan Li
a44b310c0a debuff trigger and action, allow multiple spell 2023-06-02 19:57:08 +08:00
Yunfan Li
d45a7dc5b8 fix party member dispel. 2023-05-29 23:03:21 +08:00
Yunfan Li
2ad567a1a8 Flee action, factory setting 2023-05-29 11:45:18 +08:00
Yunfan Li
c16e587854 fix: bot stuck after drink or food && initialization customized 2023-05-23 23:39:20 +08:00
qudzy
15e3e452d8 Encourage hunter bots to use auto shot 2022-06-01 22:52:32 +02:00
whipowill
92ce54a3cd Compile bug fixes. 2022-05-20 12:41:13 -05:00
whipowill
9a6709f5c1 Compile bug fixes. 2022-05-18 17:03:01 -05:00
UltraNix
b952636f0d Big update. 2022-03-12 22:27:09 +01:00