Player player = target.getPlayer();
if (player == null)
{
return null;
}
SiegeClanObject siegeClan1 = getSiegeClan(SiegeEvent.ATTACKERS, player.getClan());
if ((siegeClan1 == null) && attacker.isSiegeGuard())
{
return SystemMsg.INVALID_TARGET;
}
Player playerAttacker = attacker.getPlayer();
if (playerAttacker == null)
{
return SystemMsg.INVALID_TARGET;
}
SiegeClanObject siegeClan2 = getSiegeClan(SiegeEvent.ATTACKERS, playerAttacker.getClan());
if ((siegeClan1 != null) && (siegeClan2 != null) && isAttackersInAlly())
{
return SystemMsg.FORCE_ATTACK_IS_IMPOSSIBLE_AGAINST_A_TEMPORARY_ALLIED_MEMBER_DURING_A_SIEGE;
}
if ((siegeClan1 == null) && (siegeClan2 == null))