}
@Override
protected void onEvtAttacked(L2Character attacker, int damage)
{
L2Character actor;
if(attacker == null || (actor = getActor()) == null || !actor.isDoor())
{
return;
}
L2Player player = attacker.getPlayer();
if(player == null)
{
return;
}
L2Clan clan = player.getClan();
Siege siege = SiegeManager.getSiege(actor, true);
if(siege == null)
{
return;
}
if(clan != null && siege == clan.getSiege() && clan.isDefender())
{
return;
}
for(L2NpcInstance npc : actor.getAroundNpc(900, 500))
{
if(!npc.isSiegeGuard())
{
continue;
}