Commit Graph

34 Commits

Author SHA1 Message Date
root
387c491265 fix(Playerbots): Remove auras before teleporting to prevent crash
Add RemoveAurasWithInterruptFlags call before all TeleportTo operations
to prevent race condition crash in battlegrounds.

The crash occurs when area auras (like "Entering Battleground") are
queued for removal in Aura::UpdateTargetMap's targetsToRemove list,
but the unit is deleted before the 500ms update cycle completes,
causing SIGSEGV when accessing the dangling pointer.

This fix removes auras with AURA_INTERRUPT_FLAG_TELEPORTED and
AURA_INTERRUPT_FLAG_CHANGE_MAP before teleporting, matching the
behavior in Player::TeleportTo for real players.

Affected locations:
- BattleGround join/teleport
- Spirit healer/graveyard teleport
- Corpse resurrection teleport
- Meeting stone teleport
- Master follow teleport
- RPG unstuck teleport
- Random bot teleport
- Chat command teleport

Raid-specific teleports excluded as they require separate testing.
2025-10-03 15:58:36 +10:00
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
Yunfan Li
a307eb2f08 VisitAllObjects to VisitObjects (sync with acore) (#1513) 2025-08-09 19:17:33 +08:00
blinkysc
3d6f925cca Revert "Add possible crash fix when summoning an invalid bot (#1125)"
This reverts commit 495269bfa0.
2025-04-24 11:04:18 -05:00
EricksOliveira
3d743ccab3 Crash fix: Bots now properly turn their corpse into bones when resurrected so they don't have a second corpse after dying and releasing again. (#1165) 2025-04-04 21:56:56 +08:00
EricksOliveira
7446d0b1d4 Summon improvement: Selfbot no longer complains about being unable to… (#1166)
* Summon improvement: Selfbot no longer complains about being unable to summon to itself.

* Fix build

* .
2025-04-04 21:56:22 +08:00
EricksOliveira
495269bfa0 Add possible crash fix when summoning an invalid bot (#1125) 2025-03-28 16:08:40 +01:00
mostlynick3
50200584d1 Correct UseMeetingStoneAction to only apply on meeting stone portals 2025-03-28 16:01:09 +01:00
kadeshar
3d6d454337 Stay strategy improvement (#1072)
* - Stay Strategy work in combat and with RTSC

* - Fixed summon with stay strategy

* - Added new stay strategy support for chat commands
2025-03-20 10:53:16 +01:00
Yunfan Li
25c46037cd Reset prioritized targets 2024-09-10 20:45:46 +08:00
Yunfan Li
311bdbd91b Serveral crashes fix 2024-09-07 12:08:38 +08:00
Yunfan Li
47f8eb3e4a Ulduar flame leviathan (normal mode) 2024-08-19 19:30:04 +08:00
Yunfan Li
2a5b7dcb61 Aggresive water elemental 2024-08-14 18:37:21 +08:00
Yunfan Li
7b0bb20078 Movement priority 2024-08-14 18:37:21 +08:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
Yunfan Li
6b7b270b26 Remove can not enter message 2024-07-28 19:12:01 +08:00
Yunfan Li
fd74ae8af7 [Command] Fix revive condition for summon 2024-07-28 11:02:16 +08:00
Yunfan Li
1f7ab72b04 [Configuration] Make more options for ReviveBotWhenSummoned 2024-07-24 21:13:32 +08:00
Yunfan Li
b34ebf5a90 [Crash fix] Teleport bots exceed dungeon max players limit 2024-07-17 16:29:54 +08:00
Revision
031dd2c7be Cleanup 2024-07-12 13:48:46 +02:00
Revision
7309d8f3c9 Add config options for the new summon conditions 2024-07-11 23:46:59 +02:00
Chromie-WoW
36c84d55f2 Add option 2024-07-10 15:13:22 -07:00
Revision
c3ec1dabb1 Conditions for Summon 2024-07-09 19:26:44 +02:00
Yunfan Li
fe64d9ce00 [Combat formation] Avoid flee repeatly 2024-07-09 16:39:50 +08:00
Yunfan Li
7325ba7dcb [Class spell] Aoe threat check 2024-07-07 21:51:19 +08:00
Yunfan Li
55515f0ec5 [Avoid aoe] Position selection 2024-06-29 21:57:28 +08:00
Yunfan Li
e5e05988b2 modify bot revive when summon behaviour 2023-10-17 21:02:59 +08:00
Yunfan Li
fa5545ee71 bot revive 2023-10-08 20:11:00 +08:00
Yunfan Li
4e56008b61 more configurations 2023-10-07 22:12:02 +08:00
Yunfan Li
a24e60f03d facing to & reach party member to resurrect 2023-09-14 23:29:09 +08:00
Yunfan Li
c21b534e47 fix equip replace bug 2023-07-14 14:46:02 +08:00
UltraNix
b952636f0d Big update. 2022-03-12 22:27:09 +01:00