Bots: Patchwerk's hall posts hold only while he is fought in his hall
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <needOtherEnemy> creature when one is given, else <enemy>.
|
||||
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 <enemy> is alive and fighting, a member carrying <aura> stands <distance> yards from the enemy's live position
|
||||
// along the fixed world bearing <bearing> (radians) and holds within <tolerance> (Thaddius' Positive / Negative Charge
|
||||
|
||||
Reference in New Issue
Block a user