|
@@ -19,21 +19,13 @@ import com.l2jserver.gameserver.handler.ActionShiftHandler;
|
|
|
import com.l2jserver.gameserver.handler.IActionHandler;
|
|
|
import com.l2jserver.gameserver.idfactory.IdFactory;
|
|
|
import com.l2jserver.gameserver.instancemanager.InstanceManager;
|
|
|
-import com.l2jserver.gameserver.model.actor.L2Attackable;
|
|
|
import com.l2jserver.gameserver.model.actor.L2Character;
|
|
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
|
|
-import com.l2jserver.gameserver.model.actor.L2Playable;
|
|
|
-import com.l2jserver.gameserver.model.actor.L2Summon;
|
|
|
-import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance;
|
|
|
-import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
|
|
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
|
|
-import com.l2jserver.gameserver.model.actor.instance.L2PetInstance;
|
|
|
-import com.l2jserver.gameserver.model.actor.instance.L2TrapInstance;
|
|
|
import com.l2jserver.gameserver.model.actor.knownlist.ObjectKnownList;
|
|
|
import com.l2jserver.gameserver.model.actor.poly.ObjectPoly;
|
|
|
import com.l2jserver.gameserver.model.actor.position.ObjectPosition;
|
|
|
import com.l2jserver.gameserver.model.entity.Instance;
|
|
|
-import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
|
|
|
import com.l2jserver.gameserver.network.SystemMessageId;
|
|
|
import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
|
|
|
import com.l2jserver.gameserver.network.serverpackets.ExSendUIEvent;
|
|
@@ -696,7 +688,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2PcInstance}
|
|
|
+ * @return {@code true} if object is instance of L2PcInstance
|
|
|
*/
|
|
|
public boolean isPlayer()
|
|
|
{
|
|
@@ -704,7 +696,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2Playable}
|
|
|
+ * @return {@code true} if object is instance of L2Playable
|
|
|
*/
|
|
|
public boolean isPlayable()
|
|
|
{
|
|
@@ -712,7 +704,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2Summon}
|
|
|
+ * @return {@code true} if object is instance of L2Summon
|
|
|
*/
|
|
|
public boolean isSummon()
|
|
|
{
|
|
@@ -720,7 +712,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2PetInstance}
|
|
|
+ * @return {@code true} if object is instance of L2PetInstance
|
|
|
*/
|
|
|
public boolean isPet()
|
|
|
{
|
|
@@ -728,7 +720,15 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2DoorInstance}
|
|
|
+ * @return {@code true} if object is instance of L2ServitorInstance
|
|
|
+ */
|
|
|
+ public boolean isServitor()
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return {@code true} if object is instance of L2DoorInstance
|
|
|
*/
|
|
|
public boolean isDoor()
|
|
|
{
|
|
@@ -736,7 +736,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2Npc}
|
|
|
+ * @return {@code true} if object is instance of L2Npc
|
|
|
*/
|
|
|
public boolean isNpc()
|
|
|
{
|
|
@@ -744,7 +744,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2Attackable}
|
|
|
+ * @return {@code true} if object is instance of L2Attackable
|
|
|
*/
|
|
|
public boolean isL2Attackable()
|
|
|
{
|
|
@@ -752,7 +752,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2MonsterInstance}
|
|
|
+ * @return {@code true} if object is instance of L2MonsterInstance
|
|
|
*/
|
|
|
public boolean isMonster()
|
|
|
{
|
|
@@ -760,7 +760,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2TrapInstance}
|
|
|
+ * @return {@code true} if object is instance of L2TrapInstance
|
|
|
*/
|
|
|
public boolean isTrap()
|
|
|
{
|
|
@@ -768,7 +768,7 @@ public abstract class L2Object
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if object is instance of {@link L2ItemInstance}
|
|
|
+ * @return {@code true} if object is instance of L2ItemInstance
|
|
|
*/
|
|
|
public boolean isItem()
|
|
|
{
|