Correct Z of monsters.

This commit is contained in:
MobiusDevelopment 2021-03-31 19:21:26 +00:00
parent 3d3d4c30cd
commit 6145503dd6
23 changed files with 23 additions and 23 deletions

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -462,7 +462,7 @@ public class Spawn
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -462,7 +462,7 @@ public class Spawn
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -402,7 +402,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -402,7 +402,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);

View File

@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
// Correct Z of monsters.
if (!npc.isFlying() && (water == null))
if (npc.isMonster() && !npc.isFlying() && (water == null))
{
// Do not correct Z distances greater than 300.
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);