From 43a33f8b4e6b796510078cfd4535b5f86cc80f70 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:13:13 +0000 Subject: [PATCH] Bots: Patchwerk's hall posts hold only while he is fought in his hall --- src/modules/PlayerbotV2/Bot/Raid/RaidBrain.cpp | 2 ++ src/modules/PlayerbotV2/Bot/Raid/RaidEncounterData_NAXX.cpp | 6 ++++++ src/modules/PlayerbotV2/Bot/Raid/RaidEncounters.h | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/modules/PlayerbotV2/Bot/Raid/RaidBrain.cpp b/src/modules/PlayerbotV2/Bot/Raid/RaidBrain.cpp index ce6a6e2e04..3e98475b9b 100644 --- a/src/modules/PlayerbotV2/Bot/Raid/RaidBrain.cpp +++ b/src/modules/PlayerbotV2/Bot/Raid/RaidBrain.cpp @@ -3239,6 +3239,8 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector< } if (!boss) continue; + if (rule.maxFromEnemy > 0.0f && Dist2D(boss->GetPositionX(), boss->GetPositionY(), rule.x, rule.y) > rule.maxFromEnemy) + continue; if (rule.needOtherEnemy ? !other : (rule.needVictimIsMe && boss->GetVictim() != bot)) continue; out.post_enemy = boss->GetGUID(); diff --git a/src/modules/PlayerbotV2/Bot/Raid/RaidEncounterData_NAXX.cpp b/src/modules/PlayerbotV2/Bot/Raid/RaidEncounterData_NAXX.cpp index e177d1a216..a76dbadefa 100644 --- a/src/modules/PlayerbotV2/Bot/Raid/RaidEncounterData_NAXX.cpp +++ b/src/modules/PlayerbotV2/Bot/Raid/RaidEncounterData_NAXX.cpp @@ -169,6 +169,12 @@ namespace Playerbot::Raid { r.stand.push_back({ 16028, Who::Ranged, 3272.0f, -3240.0f, kPatchHallZ, 5.0f, false, 0 }); r.stand.push_back({ 16028, Who::Healer, 3326.0f, -3223.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 1 }); r.stand.push_back({ 16028, Who::Healer, 3326.0f, -3241.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 2 }); + // The posts are for a fight in his hall. Pulled anywhere else (chris 11-15 live: met at the hall's west end, 3210,-3190, on his + // walk), the healers ran 120 y off to the east corners and the ranged 80 y to theirs, nobody healed the soakers and every tank died + // to Hateful Strike in the first 30 s. Past 40 y from a post he is fought where he is, by the plain raid layout. + for (Stand& s : r.stand) + if (s.enemy == 16028) + s.maxFromEnemy = 40.0f; // --------------------------------------------------------------------------------------------------------------- // GROBBULUS (15931): Mutating Injection 28169 explodes into a poison cloud (creature 16363, triggers 28241 every diff --git a/src/modules/PlayerbotV2/Bot/Raid/RaidEncounters.h b/src/modules/PlayerbotV2/Bot/Raid/RaidEncounters.h index 840cfd3bab..c5845b2c45 100644 --- a/src/modules/PlayerbotV2/Bot/Raid/RaidEncounters.h +++ b/src/modules/PlayerbotV2/Bot/Raid/RaidEncounters.h @@ -109,7 +109,9 @@ struct Spread { uint32_t enemy; float radius; Who who; float hpMax = 100.0f; flo // needVictimIsMe: only when the enemy is attacking this bot - the creature when one is given, else . struct Stand { uint32_t enemy; Who who; float x, y, z; float tolerance; bool needVictimIsMe; uint32_t needOtherEnemy; float hpMax = 100.0f; float hpMin = 0.0f; uint8_t share = 0; // share 1 / 2: only the even / odd numbered of the members this rule matches (by guid order), so one rule list can split e.g. the off-tanks between two posts - uint32_t endEnemy = 0; }; // the post ends once this enemy is in the fight (EnemyInFight): a phase's layout that the next phase must not keep + uint32_t endEnemy = 0; // the post ends once this enemy is in the fight (EnemyInFight): a phase's layout that the next phase must not keep + float maxFromEnemy = 0.0f; }; // > 0: the post holds only while the enemy is within this many yards of it (a boss pulled + // somewhere else is fought where he is, not from posts across the room); 0 = always // While is alive and fighting, a member carrying stands yards from the enemy's live position // along the fixed world bearing (radians) and holds within (Thaddius' Positive / Negative Charge