Commit Graph

39 Commits

Author SHA1 Message Date
Yunfan Li
4b1febc62a Minor improvments on logs, stats weights and aoe distance calculation (#995)
* StatsCollector for paladin spell

* Remove error log on MoveFromGroup

* Log and timer for CreateRandomBots

* Improve aoe trigger distance calculation

* Reduce spirit weights for heal priest and paladin
2025-02-22 10:57:33 +08: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
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
f20d3aea6c Unholy dk 2024-09-06 20:29:56 +08:00
Yunfan Li
406949f6dd Misdirection and tricks of the trade 2024-09-04 20:08:44 +08:00
Yunfan Li
a84c7f35f3 weapon type fix 2024-09-02 17:47:46 +08:00
Yunfan Li
4c77f71bd4 Cat druid energy control 2024-09-02 00:30:10 +08:00
Yunfan Li
52bb8b9770 General trigger fix 2024-09-01 17:19:12 +08:00
Yunfan Li
360a025b34 Estimated dps calculation 2024-09-01 17:11:46 +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
Revision
838bfe333d Fix: Updated to work with newer commits of AzerothCore 2024-07-22 00:39:06 +02:00
Yunfan Li
05e799cff4 [Class spell] Improve warrior, dk, paladin 2024-07-13 11:41:16 +08:00
Yunfan Li
43c0435e78 [Attack Target] Invalid target check 2024-06-02 19:05:50 +08:00
Yunfan Li
9e78a0b36a Pet attack (fix shadowfiend) 2024-02-08 00:36:16 +08:00
Yunfan Li
a63c6b6709 smarter dps target and tank target 2023-10-22 01:27:37 +08:00
Yunfan Li
63048f2405 fix debuff trigger 2023-09-05 09:58:21 +08:00
Yunfan Li
b4a5736c02 time unit for expected lifetime 2023-09-05 00:56:12 +08:00
Yunfan Li
7e1de0b9cf life time check for debuff spell & cast time spell 2023-09-04 17:04:59 +08:00
Yunfan Li
14b94e20fb major class spells 2023-09-02 22:37:11 +08:00
Yunfan Li
1136b7bfdc debuff on melee attackers 2023-08-28 17:28:36 +08:00
Yunfan Li
46b94824e4 miscs: movement, coredump fix, rndbot 2023-08-02 16:16:56 +08:00
Yunfan Li
fca4d17c97 test: ms_time 2023-08-02 03:46:15 +08:00
Yunfan Li
df43d7dff7 miscs(triggers): spell range, fury warrior equip 2023-06-11 21:15:02 +08:00
Yunfan Li
617d0ee031 remove debug info 2023-06-11 19:16:56 +08:00
Yunfan Li
33576bd969 fix(spell): paladin and dk aggro spell, warrior 2023-06-11 15:55:36 +08:00
Yunfan Li
e68a22d968 mage and paladin strategy port 2023-06-03 20:16:35 +08:00
Yunfan Li
0f483047e5 warlock and dk strategy port 2023-06-03 14:01:20 +08:00
Yunfan Li
25da0af70e tank target, formation arrow, mount fix, miscs 2023-06-02 15:49:49 +08:00
Yunfan Li
d85b562629 pet related 2023-05-30 01:06:23 +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
郑佩茹
0038b2bc08 Do not use outnumbererd trigger in raid group 2023-03-23 12:35:12 -06:00
郑佩茹
53395b64ed avoid AOE strategy (WIP) 2023-03-23 12:22:58 -06:00
郑佩茹
5d17dfb2fe Check debuff owner on target 2023-03-21 13:25:41 -06:00
郑佩茹
aeeb37da78 Trigger fixes and Warrior AI tweaks 2023-03-21 12:25:25 -06:00
郑佩茹
f1bcca1a7b Port fixes until b4094bf - flying, mount animations, bot attack range, free food option 2022-03-22 17:13:10 -06:00
UltraNix
b952636f0d Big update. 2022-03-12 22:27:09 +01:00