Commit Graph

16 Commits

Author SHA1 Message Date
bash
e042e3b12b Added shapeshift 2025-09-27 22:55:52 +02:00
bash
3228667121 Merge branch 'master' into patch-2 2025-09-27 22:40:39 +02:00
Gonzalo
f23b2ea2f6 fix: Optimize DrinkAction to check mana in isUseful instead of Execute (#1666)
* fix: Optimize DrinkAction to check mana in isUseful instead of Execute

- Move HasManaValue check from Execute to isUseful for better performance
- Prevents non-mana classes from executing drink actions unnecessarily
- Improves AI efficiency by early filtering in isUseful method

Addresses reviewer feedback about HasManaValue usage optimization

* Update NonCombatActions.cpp

---------

Co-authored-by: bash <31279994+hermensbas@users.noreply.github.com>
2025-09-27 13:06:16 +02:00
Gonzalo
f26c4e99f6 Fix: Prevent bots from eating and drinking while mounted
This change modifies the `DrinkAction::Execute()` and `EatAction::Execute()` functions in `src/strategy/actions/NonCombatActions.cpp`.

Previously, playerbots could attempt to eat food or drink water while mounted, which is not possible in the game and creates unrealistic behavior.

This fix adds mount state checks to both actions:
1. `DrinkAction::Execute()` now checks `bot->IsMounted()` and returns false if mounted
2. `EatAction::Execute()` now checks `bot->IsMounted()` and returns false if mounted

This prevents bots from attempting to consume food or drinks while mounted, improving bot behavior realism and preventing unnecessary action attempts that would fail anyway.
2025-09-25 18:26:28 -03:00
kadeshar
bc737ecc68 - Changed standalone config on cheat (#1585)
- Changed drink condition
2025-08-26 18:28:42 +02:00
Yunfan Li
e59bad26c4 Change drink aura for free food 2025-07-27 11:36:43 +08:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
Yunfan Li
5e2497bf7e Spell cast time calculation 2024-02-07 21:37:19 +08:00
Yunfan Li
a24e60f03d facing to & reach party member to resurrect 2023-09-14 23:29:09 +08:00
Yunfan Li
0d851002f2 drink & food noncombat only 2023-08-24 22:05:16 +08:00
Yunfan Li
0969db4c89 feat: rndbot teleport, grind, stuck problem etc. 2023-08-01 23:21:06 +08:00
Yunfan Li
aaae6b6476 fix freefood 2023-07-31 12:44:43 +08:00
Yunfan Li
429dc03100 feat: fix warning 2023-05-24 19:44:53 +08:00
Yunfan Li
c16e587854 fix: bot stuck after drink or food && initialization customized 2023-05-23 23:39:20 +08: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