Replaced instanceof L2Character with isCharacter method.

This commit is contained in:
MobiusDev
2018-06-30 16:42:41 +00:00
parent d806ff66e5
commit 049a9b02aa
179 changed files with 270 additions and 282 deletions

View File

@@ -485,7 +485,7 @@ public class Baium extends Quest
{
for (L2Object obj : objs)
{
if (obj instanceof L2Character)
if (obj.isCharacter())
{
if (((((L2Character) obj).getZ() < (npc.getZ() - 100)) && (((L2Character) obj).getZ() > (npc.getZ() + 100))) || !GeoData.getInstance().canSeeTarget(obj, npc))
{