mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 20:22:23 -04:00
Core/SmartAI: Fixed SMART_ACTION_SET_RANGED_MOVEMENT parameters
This commit is contained in:
@@ -1543,8 +1543,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
if (!IsSmart())
|
||||
break;
|
||||
|
||||
float attackDistance = (float)e.action.setRangedMovement.distance;
|
||||
float attackAngle = e.action.setRangedMovement.angle / 180.0f * M_PI;
|
||||
float attackDistance = float(e.action.setRangedMovement.distance);
|
||||
float attackAngle = float(e.action.setRangedMovement.angle) / 180.0f * M_PI;
|
||||
|
||||
ObjectList* targets = GetTargets(e, unit);
|
||||
if (targets)
|
||||
|
||||
Reference in New Issue
Block a user