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

@@ -1,9 +0,0 @@
#Olympiad Properties
#Sat Jun 23 03:04:27 EEST 2018
CurrentCycle=1
NextWeeklyChange_DateFormat=30 \u0399\u03BF\u03C5\u03BD 2018 2\:40\:38 \u03C0\u03BC
NextWeeklyChange=1530315638161
OlympiadEnd=1530435600161
OlympiadEnd_DateFormat=1 \u0399\u03BF\u03C5\u03BB 2018 12\:00\:00 \u03BC\u03BC
Period=0
ValdationEnd=0

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))
{