L2Player player = (L2Player) activeChar;
if(player.getClan() == null || !player.isClanLeader())
{
return false;
}
Siege siege = SiegeManager.getSiege(activeChar, true);
if(siege == null || siege.getSiegeUnit().getType() != ResidenceType.Castle)
{
return false;
}
if(siege.getAttackerClan(player.getClan()) == null)
{
return false;
}
if(player.isMounted())
{
return false;
}
if(!player.isInRangeZ(target, 120))
{
player.sendPacket(Msg.YOUR_TARGET_IS_OUT_OF_RANGE);
return false;
}
if(first)
{
for(SiegeClan sc : siege.getDefenderClans().values())
{
L2Clan clan = sc.getClan();
if(clan != null)
{
clan.broadcastToOnlineMembers(Msg.THE_OPPONENT_CLAN_HAS_BEGUN_TO_ENGRAVE_THE_RULER);