public override void run() { try { Account player = _client._player; Room room = player == null ? null : player._room; if (room != null && room.round.Timer == null && room._state == RoomState.Battle && !room.C4_actived) { SLOT slot = room.getSlot(slotIdx); if (slot == null || slot.state != SLOT_STATE.BATTLE) { return; } Net_Room_C4.InstallBomb(room,slot,area,x,y,z); } } catch (Exception ex) { SaveLog.fatal(ex.ToString()); Printf.b_danger("[BATTLE_MISSION_BOMB_INSTALL_REC.run] Erro fatal!"); } }
public override void run() { try { Account player = this._client._player; Room room = player == null ? (Room)null : player._room; if (room == null || room.round.Timer != null || (room._state != RoomState.Battle || room.C4_actived)) { return; } SLOT slot = room.getSlot(this.slotIdx); if (slot == null || slot.state != SLOT_STATE.BATTLE) { return; } Net_Room_C4.InstallBomb(room,slot,(int)this.area,this.x,this.y,this.z); } catch (Exception ex) { Logger.info("[BATTLE_MISSION_BOMB_INSTALL_REC]: " + ex.ToString()); } }