Enable monsters movement on ledges.

This commit is contained in:
MobiusDev 2018-09-07 03:41:26 +00:00
parent a4a77df305
commit e6acac0aec
8 changed files with 8 additions and 0 deletions

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -4261,6 +4261,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)

View File

@ -3262,6 +3262,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
if (!isInVehicle // Not in vehicle.
&& !(isMonster() && (Math.abs(dz) > 100)) // Monsters can move on ledges.
&& !(((curZ - z) > 300) && (distance < 300))) // Prohibit correcting destination if character wants to fall.
{
// location different if destination wasn't reached (or just z coord is different)