temp.cancelActiveTrade();
temp.setIsInDuel(_duelId);
temp.setTeam(1);
//temp.broadcastStatusUpdate();
temp.broadcastUserInfo();
broadcastToTeam2(new ExDuelUpdateUserInfo(temp));
}
for(L2PcInstance temp : _playerB.getParty().getPartyMembers())
{
temp.cancelActiveTrade();
temp.setIsInDuel(_duelId);
temp.setTeam(2);
//temp.broadcastStatusUpdate();
temp.broadcastUserInfo();
broadcastToTeam1(new ExDuelUpdateUserInfo(temp));
}
// Send duel Start packets
ExDuelReady ready = new ExDuelReady(1);
ExDuelStart start = new ExDuelStart(1);
broadcastToTeam1(ready);
broadcastToTeam2(ready);
broadcastToTeam1(start);
broadcastToTeam2(start);
ready = null;
start = null;
}
else
{
// set isInDuel() state
_playerA.setIsInDuel(_duelId);
_playerA.setTeam(1);
_playerB.setIsInDuel(_duelId);
_playerB.setTeam(2);
// Send duel Start packets
ExDuelReady ready = new ExDuelReady(0);
ExDuelStart start = new ExDuelStart(0);
broadcastToTeam1(ready);
broadcastToTeam2(ready);
broadcastToTeam1(start);
broadcastToTeam2(start);
broadcastToTeam1(new ExDuelUpdateUserInfo(_playerB));
broadcastToTeam2(new ExDuelUpdateUserInfo(_playerA));
//_playerA.broadcastStatusUpdate();
//_playerB.broadcastStatusUpdate();
_playerA.broadcastUserInfo();
_playerB.broadcastUserInfo();