}
L2Clan clan1 = getClan();
L2Clan clan2 = target.getClan();
if(clan1 != null && clan2 != null)
{
Siege siege1 = clan1.getSiege();
Siege siege2 = clan2.getSiege();
int state1 = getSiegeState();
int state2 = target.getSiegeState();
if(siege1 != null && siege2 != null && siege1 == siege2 && siege1.isInProgress() && state1 != 0 && state2 != 0)
{
result |= RelationChanged.RELATION_INSIEGE;