Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestDuelSurrender

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.entity.Duel;

public class RequestDuelSurrender extends L2GameClientPacket
{
  @Override
  public void readImpl()
  {
  }

  @Override
  public void runImpl()
  {
    L2Player p = getClient().getActiveChar();
    if(p == null)
    {
      return;
    }
    Duel d = p.getDuel();
    if(d == null)
    {
      return;
    }
    d.doSurrender(p);
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestDuelSurrender

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.