mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-13 04:13:01 -04:00
Fixed issue where maximum combat distance wasn't being considered when a player warped out of the area (i.e. cloned).
This commit is contained in:
Regular → Executable
+1
-1
@@ -65,7 +65,7 @@ public class encounter_on_creature extends script.base_script
|
||||
startDistanceToPlayer = .1f;
|
||||
}
|
||||
float distanceTraveled = startLocation.distance(currentLocation);
|
||||
if ((distanceTraveled == 0) || (distanceToPlayer / startDistanceToPlayer > 0.9))
|
||||
if (((distanceTraveled == 0) || (distanceToPlayer / startDistanceToPlayer) > 0.9) && combatDistance > distanceToPlayer)
|
||||
{
|
||||
int questCrc = getIntObjVar(self, objvarOnCreatureQuestCrc);
|
||||
int taskId = getIntObjVar(self, objvarOnCreatureTaskId);
|
||||
|
||||
Reference in New Issue
Block a user