package l2p.gameserver.clientpackets;
import l2p.gameserver.instancemanager.FortressManager;
import l2p.gameserver.model.L2Player;
import l2p.gameserver.model.entity.residence.Fortress;
import l2p.gameserver.serverpackets.ExShowFortressSiegeInfo;
public class RequestFortressSiegeInfo extends L2GameClientPacket
{
@Override
public void readImpl()
{
}
@Override
public void runImpl()
{
L2Player activeChar = getClient().getActiveChar();
if(activeChar == null)
{
return;
}
for(Fortress fort : FortressManager.getInstance().getFortresses().values())
{
if(fort != null && fort.getSiege().isInProgress())
{
activeChar.sendPacket(new ExShowFortressSiegeInfo(fort));
}
}
}
}