@Override
    public void deserialize(Buffer buf) {
        fightId = buf.readInt();
        if (fightId < 0)
            throw new RuntimeException("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
        int limit = buf.readUShort();
        alliesId = new int[limit];
        for (int i = 0; i < limit; i++) {
            alliesId[i] = buf.readInt();
        }
        duration = buf.readShort();
        if (duration < 0)
            throw new RuntimeException("Forbidden value on duration = " + duration + ", it doesn't respect the following condition : duration < 0");
    }