mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
chore(CI/codestyle): fix build (#4241)
This commit is contained in:
@@ -2324,7 +2324,7 @@ Position* Unit::GetMeleeAttackPoint(Unit* attacker)
|
||||
int8 direction = (urand(0, 1) ? -1 : 1);
|
||||
|
||||
angle = frand(0.1f,0.3f) + (angle && !isnan(angle) ? angle : atan(attackerSize / (meleeReach))); // or fallback to the simpler method
|
||||
|
||||
|
||||
float x, y, z;
|
||||
GetNearPoint(attacker, x, y, z, attackerSize, 0.0f, currentAngle + angle * direction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user