This commit is contained in:
Bobblybook
2024-10-06 04:31:37 +11:00
parent 45303d55c1
commit 4021387387

View File

@@ -167,7 +167,7 @@ bool RearFlankPositionAction::isUseful()
// Total 180 degrees (whole front half) // Total 180 degrees (whole front half)
bool inFront = boss->HasInArc(2.f * DRAGON_MELEE_MIN_ANGLE, bot); bool inFront = boss->HasInArc(2.f * DRAGON_MELEE_MIN_ANGLE, bot);
// Rear check does not need to double this angle as the logic is inverted // Rear check does not need to double this angle as the logic is inverted
// and we are subtracing from 2pi. // and we are subtracting from 2pi.
bool inBack = !boss->HasInArc((2.f * M_PI) - DRAGON_MELEE_MAX_ANGLE, bot); bool inBack = !boss->HasInArc((2.f * M_PI) - DRAGON_MELEE_MAX_ANGLE, bot);
return inFront || inBack; return inFront || inBack;