Core/SmartAI: Fixed SMART_ACTION_SET_RANGED_MOVEMENT parameters
This commit is contained in:
1 parent
29bfb9854c
commit
ea9339b171
2 files changed
+11
-8
No files matched your search
@@ -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