Package l2p.gameserver.model.instances

Source Code of l2p.gameserver.model.instances.L2ArtefactInstance

package l2p.gameserver.model.instances;

import l2p.gameserver.ai.L2CharacterAI;
import l2p.gameserver.ai.L2StaticObjectAI;
import l2p.gameserver.model.L2Character;
import l2p.gameserver.templates.L2NpcTemplate;

public final class L2ArtefactInstance extends L2NpcInstance
{
  public boolean hasChatWindow = false;

  public L2ArtefactInstance(int objectId, L2NpcTemplate template)
  {
    super(objectId, template);
  }

  @Override
  public L2CharacterAI getAI()
  {
    if(_ai == null)
    {
      _ai = new L2StaticObjectAI(this);
    }
    return _ai;
  }

  @Override
  public boolean isAutoAttackable(L2Character attacker)
  {
    return false;
  }

  @Override
  public boolean isAttackable(L2Character attacker)
  {
    return false;
  }

  /**
   * Артефакт нельзя убить
   */
  @Override
  public void doDie(L2Character killer)
  {
  }

  @Override
  public boolean isInvul()
  {
    return true;
  }

  @Override
  public boolean isFearImmune()
  {
    return true;
  }

  @Override
  public boolean isParalyzeImmune()
  {
    return true;
  }

  @Override
  public boolean isLethalImmune()
  {
    return true;
  }
}
TOP

Related Classes of l2p.gameserver.model.instances.L2ArtefactInstance

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.